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.
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.