WaitKey_or_Mouse()

BlitzMax Forums/BlitzMax Beginners Area/WaitKey_or_Mouse()

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.

The point is I DO care which key or button was pressed.
WaitKey and WaitMouse each issue their own "WaitSystem" and you can't satisfy both at once.

KeyHit() and MouseHit() don't seem to work without a specific key code between the parentheses.
This is the idea of what I want, but it doesn't work either:

While Not (kc = WaitKey())|(kc = WaitMouse()) ; Delay(1); Wend

WaitKey_Or_Mouse() gets around the two waitsystem bind.