Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Take for example, the Xbox One controller. XInput returns joystick input along 2 axis (x & y). I'm not sure if the hardware just measures voltage across 2 axis or not, I'm not very knowledgeable in the hardware domain.

I'm unsure what data processing is done by API's like XInput already - but since the deadzone is still prevalent, I'm assuming XInput does very little input massaging.

I'm wondering what the "proper" way to process this data is (not limited to just input from XInput - but joystick input in general). Ex:

  • Should the deadzone be clipped circularly or rectangularly?
  • What type of low-pass filter should be applied, if any? Maybe a moving average?
  • Should a bias be introduced into the input based on the resting input?
share|improve this question
    
Quick note: analog joysticks are generally created using two potentiometers, one for each axis. The voltage range is usually either 0-5 or 0-3.3 volts. ADCs typically convert to an n-bit integer, which is then converted to the float input seen by your program. –  XGundam05 Mar 11 at 19:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.