Joy Axis hit?

BlitzMax Forums/BlitzMax Programming/Joy Axis hit?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm currently setting up my game to support both keyboard and joypad control and so far it’s working flawlessly, save for one thing...

If for example I need to call Keyhit(KEY_UP), I can't see any obvious equivalent command for the joypad, only JoyY()=-1 which is effectively the same as KeyDown(KEY_UP).

Does anyone have any idea of an easy way to make a JoyAxisHit() command that will only register the joystick movement once?

Thanks!