public static interface SquidInput.KeyHandler
Modifier and Type | Method and Description |
---|---|
void |
handle(char key,
boolean alt,
boolean ctrl,
boolean shift)
The only method you need to implement yourself in KeyHandler, this should react to keys such as
'a' (produced by pressing the A key while not holding Shift), 'E' (produced by pressing the E key while
holding Shift), and '←' (left arrow in unicode, also available as a constant in SquidInput, produced by
pressing the left arrow key even though that key does not have a default unicode representation).
|
void handle(char key, boolean alt, boolean ctrl, boolean shift)
key
- a char of the "typed" representation of the key, such as 'a' or 'E', or if there is no Unicode
character for the key, an appropriate alternate character as documented in SquidInput.fromKey()alt
- true if the Alt modifier was being held while this key was entered, false otherwise.ctrl
- true if the Ctrl modifier was being held while this key was entered, false otherwise.shift
- true if the Shift modifier was being held while this key was entered, false otherwise.Copyright © Eben Howard 2012–2022. All rights reserved.