# Xbox 360 controller with GLFW

**URL:** <https://discourse.glfw.org/t/xbox-360-controller-with-glfw/124>\
**Category:** support\
**Created:** [March 24, 2015, 8:32pm UTC](https://discourse.glfw.org/t/xbox-360-controller-with-glfw/124 "2015-03-24T20:32:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [March 24, 2015, 8:32pm UTC](https://discourse.glfw.org/t/xbox-360-controller-with-glfw/124/1 "2015-03-24T20:32:11Z")

</div>

**[hellomrcake](https://sourceforge.net/u/hellomrcake/)** wrote on [Tuesday, March 24, 2015](https://sourceforge.net/p/glfw/discussion/247562/thread/e0580d1e/#3e32):

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?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [March 25, 2015, 12:51pm UTC](https://discourse.glfw.org/t/xbox-360-controller-with-glfw/124/2 "2015-03-25T12:51:05Z")

</div>

**[elmindreda](https://sourceforge.net/u/elmindreda/)** wrote on [Wednesday, March 25, 2015](https://sourceforge.net/p/glfw/discussion/247562/thread/e0580d1e/#b9e0):

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [May 29, 2015, 3:28am UTC](https://discourse.glfw.org/t/xbox-360-controller-with-glfw/124/3 "2015-05-29T03:28:27Z")

</div>

**[shead0](https://sourceforge.net/u/shead0/)** wrote on [Friday, May 29, 2015](https://sourceforge.net/p/glfw/discussion/247562/thread/e0580d1e/#eee4):

Hi,

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: [https://github.com/glfw/glfw/issues/337](https://github.com/glfw/glfw/issues/337)  
But I just tested with latest from github and the triggers are still on a shared axis.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [May 29, 2015, 7:19pm UTC](https://discourse.glfw.org/t/xbox-360-controller-with-glfw/124/4 "2015-05-29T19:19:58Z")

</div>

**[shead0](https://sourceforge.net/u/shead0/)** wrote on [Friday, May 29, 2015](https://sourceforge.net/p/glfw/discussion/247562/thread/e0580d1e/#1ef0):

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

[https://github.com/glfw/glfw/issues/232](https://github.com/glfw/glfw/issues/232)

Thanks
