joystick issue
Blitz3D Forums/Blitz3D Beginners Area/joystick issue
| ||
i've got 2 different joysticks and they seem to be returning different values for the same movements. ;if saitek x#=JoyRoll() z#=-JoyZ()*180 ; now goes from 180 to -180 just like joyroll. ;if rumblepad x#=JoyZ()*180 ; now goes from 180 to -180 just like joyroll. z#=-JoyRoll() is this kind of thing normal? is there a way to detect the joystick that's inserted, by name? or is the gamer somehow to supposed to configure for this? I really want my game to work out of the box as much as possible. |
| ||
This is normal. You can provide for your gamer a config screen. I don't know if it's possible to detect what kind of joystick is available but even if you knew, it would still be curteous to the gamer if you provided a config screen. |
| ||
Here is an example on how to configure different joypads. http://www.blitzbasic.com/codearcs/codearcs.php?code=1592 |