XboxDev / nxdk-sdl

SDL2 (adapted for original Xbox / nxdk toolchain)
Other
20 stars 8 forks source link

joystick: Add nxdk joystick driver #5

Closed dracc closed 5 years ago

dracc commented 5 years ago

Still untested apart from build time smoke test.

Will require XboxDev/nxdk#106.

dracc commented 5 years ago

Apart from requiring the SDL_Hint SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_INPUTS, this is working beautifullly.

Edit: seems the hint is only necessary when running more than one thread.

JayFoxRox commented 5 years ago

Bikeshed complete. Handing over to someone else for final review.

I did test this a while ago with the sample PR in nxdk, but not after recent changes.

Important note: Only this PR is fine. The samples in nxdk still need work.