TerryCavanagh / VVVVVV

The source code to VVVVVV! http://thelettervsixtim.es/
Other
6.9k stars 553 forks source link

Add support for the Wiimote controller #1141

Open mardy opened 5 months ago

mardy commented 5 months ago

Thanks @Fussmatte for the button pictures. The Product IDs added here are those reported by libSDL when running on a Wii.

Fixes: #1136

Legal Stuff:

By submitting this pull request, I confirm that...

Fussmatte commented 5 months ago

On Windows the game isn't picking up on my Wii Remote - I've tried both a native connection and a connection through Dolphin's continuous Wii Remote scanning feature. Is any specific driver required to use the controller in VVVVVV?

mardy commented 5 months ago

On the Discord server, we have two reports of the button icons being incorrect. For example, B displays as 1.

That's because the buttons are reported differently on a PC and on a Wii. I've added a PC-specific layout, can you please ask those players to test this new patch?

flibitijibibo commented 5 months ago

This might be worth punting to SDL, we're supposed to have a hidapi backend for Wii at this point...

https://github.com/libsdl-org/SDL/blob/main/src/joystick/hidapi/SDL_hidapi_wii.c

... but if we're not aligned with the actual Wii port of SDL then we might need to sync those configs up.