public class KeyboardInput
extends java.awt.event.KeyAdapter
| Modifier and Type | Field and Description |
|---|---|
static boolean |
aKeyPressed
Moving right
|
static boolean |
dKeyPressed
Moving left
|
static boolean |
escapePressed
Toggle menu screen
|
static boolean |
fKeyPressed
Toggle spin ball
|
static boolean |
gKeyPressed
Toggle Hitboxes
|
static boolean |
lKeyPressed
Toggle artificial lag to test Ghost Recon
|
static boolean |
qKeyPressed
Toggle Ghost Recon activiation
|
static boolean |
spacebarPressed
Toggle jump
|
| Constructor and Description |
|---|
KeyboardInput()
The default constructor used to create the object
|
| Modifier and Type | Method and Description |
|---|---|
void |
keyPressed(java.awt.event.KeyEvent e)
Detecting if a key has been pressed
|
void |
keyReleased(java.awt.event.KeyEvent e)
Detecting if a key that has been pressed has been released
|
public static boolean aKeyPressed
public static boolean dKeyPressed
public static boolean fKeyPressed
public static boolean gKeyPressed
public static boolean qKeyPressed
public static boolean lKeyPressed
public static boolean spacebarPressed
public static boolean escapePressed
public KeyboardInput()
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenerkeyPressed in class java.awt.event.KeyAdapterpublic void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListenerkeyReleased in class java.awt.event.KeyAdapter