public class KeyboardButton extends FakeButton
| Modifier and Type | Field and Description |
|---|---|
protected int |
keycode |
| Constructor and Description |
|---|
KeyboardButton(int keycode)
Creates a KeyboardButton.
|
| Modifier and Type | Method and Description |
|---|---|
static KeyboardButton |
getButton(int key)
Gets the KeyboardButton for a certain key.
|
get, setpublic KeyboardButton(int keycode)
keycode - The keycode for the key this KeyboardButton will listen to.public static KeyboardButton getButton(int key)
key - The keycode for the key the KeyboardButton listens to.