June 26th, 2013, 07:09 AM
Using Raw Input for joysticks, multiple axes, and deadzones
I'm currently using Raw Input to get joypad/stick information. At the beginning of my application I cache all of these devices, and the number of axes they each have (using HidP_GetValueCaps(), HidP_GetUsageValue() e.t.c). For each axis my game engine can apply a deadzone, however this means that if we have 2 axes on one analog stick then we get a squared deadzone. In order to calculate a circular deadzone we must know which axes lie on a single stick (e.g. axes 0 and 1 on an XBox 360 controller belong to the left analog stick) before using some simple trig to work it out. Is there anything in Raw Input that tells us this?
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.