fixed up gamepad mapping a bit. added options to invert and to act as a trigger

This commit is contained in:
Diego Waxemberg
2013-12-20 23:13:18 -05:00
parent 18c7d3c098
commit bef355487d
4 changed files with 178 additions and 73 deletions

View File

@@ -23,6 +23,10 @@ public class GamepadMapping implements Serializable {
return mapping.get(comp.getIdentifier().getName());
}
public void removeMapping(Component comp) {
mapping.remove(comp.getIdentifier().getName());
}
/**
* Gets the mapping for the specified component.</br>
* NOTE: Use sparingly takes O(N) time.