more gamepad changes

- now have a menu bar to access settings
- now handle user input to assign mappings
- fixed some typos
- now properly shutdown controller threads on exit
- renamed GamepadSettings to GamepadMapping
- created a lock to ensure we do not add/remove gamepads from the list while we are handling their events
- fixed settings directory booch
This commit is contained in:
Diego Waxemberg
2013-12-20 13:00:30 -05:00
parent c414fca5af
commit 6d2f7cfcb0
10 changed files with 184 additions and 80 deletions

View File

@@ -16,8 +16,8 @@ public class SettingsManager {
private static SettingsManager manager;
private SettingsManager() {
settingsFile = new File(SETTINGS_DIR + "settings");
gamepadFile = new File(SETTINGS_DIR + "gamepad");
settingsFile = new File(SETTINGS_DIR + File.separator + "settings.lime");
gamepadFile = new File(SETTINGS_DIR + File.separator + "gamepad.lime");
settingsDir = new File(SETTINGS_DIR);
}