Home
Products
Community
Manuals
Contact
Login or Signup

BlitzPlus Docs -> 2D - A-Z -> F -> FlushJoy

FlushJoy

Parameters:

None.

Description:

There are many times when you aren't interested in the dozens of possible joystick button pressed the player might have made before you are checking for one in particular. Or perhaps you want to pause the game and wait for any joystick button to be hit, but you don't want a 'queued' button press bypassing this. Use this command before you specifically want to poll a joystick button hit from the user.

Example:

; FlushJoy sample

FlushJoy

Print "Press a joystick button to exit!"

WaitJoy()

End 

Comments

Stamm(Posted 1+ years ago)
WaitJoy() doesnt work under b+: it isnt recognized by the editor


BlitzPlus Manual Forum

Blitz3D Equivalent Command