sdl2
sdl2 copied to clipboard
High-level GameController bindings
There are bindings for events, but in order to actually use the GameController interface & use those events, you must dip down into SDL.Raw:
- You have to use
SDL.Raw.gameControllerAddMappingsFromFileet al to load a mapping file. - You have to use
SDL.Raw.gameControllerOpento initialize the controller(s) so that events come through. controllerAxisEventAxisis just an untypedWord8despite being a C enum.- There are bindings in
SDL.Rawto the enum, but they are the wrong type (Word32).
- There are bindings in
- There are also lots of useful functions not bound (such as the ones to get the current state).