Description:
Returns | Range | Description |
---|---|---|
state | 0x00000000 ... 0xFFFFFFFF | every set bit represents an active input |
The getKeyboardState() method returns the state of all keys asynchronously.
Note
Example
int[] button = IO.getKeyboardState();
if ((button[3] & (1 << 4)) == (1 << 4))
If this expression evaluates to true, in column #3, the button connecting to row #4 is pressed.
if ((button[3] & (1 << 2)) == 0)
If this expression evaluates to true, in column #3, the button connecting to row #2 is not pressed.
See also:
Copyright © demmel products gmbh. All rights reserved.