public class KeyboardControls
extends java.lang.Object
implements playn.core.Keyboard.Listener
Modifier and Type | Field and Description |
---|---|
static boolean |
scrollDown |
static boolean |
scrollLeft |
static boolean |
scrollRight |
static boolean |
scrollUp |
Constructor and Description |
---|
KeyboardControls(Environment env) |
Modifier and Type | Method and Description |
---|---|
void |
onKeyDown(playn.core.Keyboard.Event event) |
void |
onKeyTyped(playn.core.Keyboard.TypedEvent event) |
void |
onKeyUp(playn.core.Keyboard.Event event) |
void |
parse() |
public static boolean scrollUp
public static boolean scrollDown
public static boolean scrollLeft
public static boolean scrollRight
public KeyboardControls(Environment env)
public void onKeyUp(playn.core.Keyboard.Event event)
onKeyUp
in interface playn.core.Keyboard.Listener
public void onKeyDown(playn.core.Keyboard.Event event)
onKeyDown
in interface playn.core.Keyboard.Listener
public void onKeyTyped(playn.core.Keyboard.TypedEvent event)
onKeyTyped
in interface playn.core.Keyboard.Listener
public void parse()