toggle menu
FOPBot
0.7.1-SNAPSHOT
jvm
switch theme
search in API
FOPBot
/
fopbot
/
KeyPressEvent
Key
Press
Event
public
final
class
KeyPressEvent
(
source
)
A
KeyPressEvent
represents a key press registered by the
InputHandler
.
Members
Constructors
Key
Press
Event
Link copied to clipboard
public
void
KeyPressEvent
(
KarelWorld
world
,
Key
key
)
Constructs an
KeyPressEvent
with the given world and key code.
Properties
key
Link copied to clipboard
public
final
Key
key
world
Link copied to clipboard
public
final
KarelWorld
world
Functions
get
Key
Link copied to clipboard
public
Key
getKey
(
)
Returns the key code of the key that triggered this
KeyPressEvent
.
get
World
Link copied to clipboard
public
KarelWorld
getWorld
(
)
Returns the world displayed by the interface that triggered this
KeyPressEvent
.