Joystick input consistency

Blitz3D Forums/Blitz3D Programming/Joystick input consistency

Chroma(Posted 2007) [#1]
It's odd how some people's z wheel on their joystick is JoyZ() while on my joystick it's JoyU(). Same with a couple other like JoyRoll() etc. Anyone else have to combat this problem?


Pongo(Posted 2007) [#2]
Anyone that wishes to use more than the standard joyX() and joyY() will have this problem. It seems that every time a new joystick/joypad is made they decide on a different arrangement. Even within the same company things change,... I have 2 Logitech gamepads, and the second stick reads as different on each.

What you need to do is remap the controls, and capture the stick settings. I wrote a little thing that does this in the code archives. http://www.blitzbasic.com/codearcs/codearcs.php?code=1592

Good luck!


Stevie G(Posted 2007) [#3]
Sorted - as above


Blitzplotter(Posted 2007) [#4]
Just used Pongo's control mapper last night for first time, sweet piece of code.