Skip to content

Conversation

@jtnuttall
Copy link
Contributor

Hey folks! Here are a few improvements to the GameController bindings from some personal work.

High-level API improvements:

  • Added isGameController, mkControllerDevice, mkControllerDevice', controllerFromInstanceID for improved device enumeration and lookup
  • Added JoystickIndex type alias to distinguish device indices from instance IDs
  • getControllerID now returns Raw.JoystickID for improved type documentation (non-breaking)

Raw bindings:

Useful functionality for player indices, LED control, expanded rumble control, touchpads.

Documentation:

Fixed controllerDeviceEventWhich documentation to clarify that it's a device index for ADDED events but an instance ID for REMOVED/REMAPPED events

@dpwiz dpwiz merged commit 1d872db into haskell-game:master Nov 9, 2025
7 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants