Open uscauv opened 11 years ago
Another note: Wrap try/catch blocks around all of the public methods that use the maps.
Another another note: This class should have an addJoystickCalback method. The issue is that the getButtonAquired and getButtonReleased methods will only work properly if the node inheriting from this class is spinning at twice the speed of the joystick node. Otherwise we will run into issues with aliasing. The host node should call addJoystickCallback to add its own callback, then call the getButtonAquired etc. functions from within that callback.
Also: Rename to JoystickPolicy
Also, clean up api and maybe implement a multi-joystick thing.