changed gamepad preferences a bunch

- no longer have ControllerComponent provide the swing elements
- renamed GamepadMapping methods to make more sense
- GamepadConfigFrame now uses a grid layout and has some nice borders
This commit is contained in:
Diego Waxemberg
2013-12-24 18:59:07 -05:00
parent e7e87825ad
commit bc79e1ee06
4 changed files with 202 additions and 185 deletions

View File

@@ -105,7 +105,7 @@ public class Gamepad {
}
private void handleComponent(Component comp, float value) {
Mapping mapping = config.getMapping(comp);
Mapping mapping = config.get(comp);
if (mapping != null) {
if (mapping.contComp.isAnalog()) {
handleAnalog(mapping.contComp, sanitizeValue(mapping, value));