Gamepad triggers don't seem to be working correctly

Reporter: Bingo675  |  Status: open  |  Last Modified: December 03, 2016, 07:23:10 AM

I'm trying to use gamepad_button_value(0,gp_shoulderrb) for the triggers on a gamepad, but it appears to be stuck at -1.
After updating the gamepad code from here, my issue still persists, though the value seems to be stuck at 0 now.

Can anyone provide me with a solution, or practical workaround? I would like to be able to use the triggers.


0 is only returned when neither the left nor the right trigger is pressed. Try going to line 245 of ENIGMAsystem/SHELL/Universal_System/Extensions/XInput/XIgamepad.cpp and adding:

printf("Key pressed: %i\n",button);

before the break and this at line 248 before the return:

printf("Error: %i",dwResult);

Tell us what comes up in a terminal when you run the program (not the ENIGMA console). Also, what platform are you on?

Please sign in to post comments, or you can view this issue on GitHub.