Xbox 360 controller with GLFW

hellomrcake wrote on Tuesday, March 24, 2015:

I’m trying to setup the Xbox 360 controller (which works perfectly fine for software that supports it) for use with my GLFW application. The buttons work fine but the triggers/sticks don’t.

GLFW tells me I have 5 joysticks, the first and last two appear to the be the sticks’ axis. The first problem is, for some reason, whenever I press anything else on the controller, be it a button, trigger, or the other joystick, the values of the axis slightly adjust on all 5 values. It so far hasn’t appeared to be a significant problem, but still annoying.

The second problem is the triggers. According to GLFW, I the middle (3’rd) “stick” is the triggers. Both of them effect the same value. If I press one, the number goes positive, if I press another, it goes negative, if I press both I get a strange value around -1.5. This makes the triggers unusable for me.

Does anybody else have problems like these?

elmindreda wrote on Wednesday, March 25, 2015:

The triggers being a single axis will be resolved once the DirectInput/XInput support is merged. It’s about halfway done.

The axis jitter is not caused by GLFW, which only passes the provided values along to the application.

shead0 wrote on Friday, May 29, 2015:


Sorry to dig up an old post - but I’m wondering if the XBox controller shared trigger axis issue is still on the todo list. I thought it would have been solved after this issue was completed:
But I just tested with latest from github and the triggers are still on a shared axis.

shead0 wrote on Friday, May 29, 2015:

Got my answer on github - here’s the related issue: