This article has been archived and is no longer being updated. It may be out of date or otherwise inaccurate due to the passage of time.

We’ve covered Glovepie here at Ergohacks several times in the past (here and here) and it is often the go to program if we have issues with key mapping or more often if want to play a game with an Xbox controller where there is not native support.

One of the gripes we’ve consistently had back from our scripts is that the sticks, particularly viewpoint from the mouse work backwards from the way they prefer.  Most games that natively support the Xbox controller support changing this in game but it is far less obvious how to do it in Glovepie.

To take an example our post on adding the Xbox controller to Neverwinter.  The following lines map the mouse which controls viewpoint to the right trigger.

// Right Stick – Mouse Pointer
Mouse.DirectInputX = Mouse.DirectInputX + 10*deadzone(XInput1.Joy2X)
Mouse.DirectInputY = Mouse.DirectInputY – 10*deadzone(XInput1.Joy2Y)

Whereas with X minor changes the Y axis is flipped.

// Right Stick – Mouse Pointer, inverted Y axis version
Mouse.DirectInputX = Mouse.DirectInputX + 10*deadzone(XInput1.Joy2X)
Mouse.DirectInputY = – Mouse.DirectInputY – 10*deadzone(XInput1.Joy2Y)

It is a simple change when you know where to make it but for those of you who prefer your Y-axis inverted there it is.

This article was first published in July 2013 and is no longer being updated. Information may be out of date or otherwise inaccurate due to the passage of time.