univrsal / input-overlay

Show keyboard, gamepad and mouse input on stream
GNU General Public License v2.0
3.03k stars 249 forks source link

Fixed sdl_gamepad::copy_data to also include touch pad button #422

Closed meo9979 closed 1 month ago

meo9979 commented 1 month ago

Fixed sdl_gamepad::copy_data to also include touch pad button when copying data. Iterate until < SDL_CONTROLLER_BUTTON_MAX instead of < SDL_CONTROLLER_BUTTON_TOUCHPAD so that touchpad button is also copied.

My use case : It allows to correctly configure the TouchPad button on the PS5 DualSense controller.

Also improved the PS5 DualSense Preset to leverage the code fix and added higlighted buttons for TouchPad, PSButton & MuteMicButton.

univrsal commented 1 month ago

Thank you for the contribution!