Skip to content
Commit 601934c4 authored by Ismael Asensio's avatar Ismael Asensio
Browse files

kcms/gamecontroller: Fix getting the status of all the buttons

SDL maps each controller button with an id in the
SDL_GameControllerButton enum, which are not necessarily
in consecutive order.

We need to store which buttons are present for the current
device and then check the status based on the enum id.
parent c9b09c41
Pipeline #543581 passed with stage
in 4 minutes and 53 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment