TerryCavanagh / VVVVVV

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

Add gamepad rumble feature #954

Open Fussmatte opened 1 year ago

Fussmatte commented 1 year ago

Changes:

This PR adds a rumble/vibration feature for players who use gamepads. It's implemented as a toggleable option (currently off by default) in the game pad options submenu.

Currently these events in the game will cause haptic feedback to occur (sorted here roughly from high to low intensity):

What still needs to be done:

Legal Stuff:

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

flibitijibibo commented 1 year ago

Functionally this seems fine, though we could maybe make use of HD rumble to do more of a "tap" rather than a traditional rumble spin for some of the more subtle effects. This isn't easily exposed in SDL right now but we support enough devices now that it's probably worth considering for SDL3...

Other than that, will leave the rest to Terry for design feedback.

flibitijibibo commented 1 year ago

Filed https://github.com/libsdl-org/SDL/issues/7509