Hazel icon indicating copy to clipboard operation
Hazel copied to clipboard

Adding joystick and gamepad support?

Open aFaCkInNo0B opened this issue 4 years ago • 1 comments

Can you make a video about adding joystick and gamepad support?

I have made this up so far.

JoystickEvent.zip GamepadEvent.zip

also a couple of changes had to be done in here

Event.zip

but still there must something be implemented inside here (Callback functions?)

WindowsWindow.zip

it supports a max of 16 joysticks so there must be a loop for scanning and initialize all joysticks with their axis, hats and buttons, same for gamepad. Maybe it is cool that initialization is possible at runtime so you can hot plug and play such devices?

btw i just arrived at input polling so your version should be more extended than mine.

aFaCkInNo0B avatar Feb 11 '21 19:02 aFaCkInNo0B

I would recommend just forking and PRing your changes rather than providing them encased in ZIPs, within an issue.

jeffmc avatar Feb 24 '21 21:02 jeffmc