runewake2
Member
|
Zero Argument [ Kb.b | Kb.bp | Kb.br | bd ]
It would be nice to have Keyboard functions that take zero arguments and return true if any key is pressed, released etc.
This would make it really easy to make things such as "Press any key to spawn" or "Press any key to continue" etc.
EDIT: It turns out that Kb.c() can be used to check for any button pressed. However, this does not work on all keys. For example Enter, Shift etc. Kb.f() will catch the others. But this would be far smoother to use if they could be called as simply Kb.b(); Kb.bp(); etc.
(This post was last modified: 06-01-2012 04:36 AM by runewake2.)
|
|
06-01-2012 04:29 AM |
|