public interface KeyboardSensor
Modifier and Type | Field and Description |
---|---|
static String |
DOWN_KEY
A special value for the 'down' keyboard key.
|
static String |
ENTER_KEY
A special value for the 'enter' keyboard key.
|
static String |
LEFT_KEY
A special value for the 'left' keyboard key.
|
static String |
RETURN_KEY
A special value for the 'return' keyboard key.
|
static String |
RIGHT_KEY
A special value for the 'right' keyboard key.
|
static String |
SPACE_KEY
A special value for the 'space' keyboard key.
|
static String |
UP_KEY
A special value for the 'up' keyboard key.
|
static final String LEFT_KEY
static final String RIGHT_KEY
static final String UP_KEY
static final String DOWN_KEY
static final String SPACE_KEY
static final String ENTER_KEY
static final String RETURN_KEY
boolean isPressed(String key)
key
- a single character or one of the static values for the special keys.Copyright © 2015. All rights reserved.