libgdx/libgdx — pull request #2185 by GreenLightning (2014-07-30 22:29:48+00:00)
Title: Add Mappings for Xbox 360 Controller on Windows and Mac

This is a weird way of doing it, but this adds mappings for the Xbox 360 controller on windows and mac (using the tattiebogle.net driver).

Because some controls are mapped differently, some fields will stay undefined even if the operating system is supported. For example on Windows AXIS_LEFT_TRIGGER will stay undefined, but on Mac AXIS_BACK_TRIGGERS will stay undefined. This is because the back triggers are mapped to two different axes on Mac, but are combined into one single axis on Windows. For those fields, libgdx users will have to compare the field with the UNDEFINED constant.