Docs: Nightly
0.6.0 · Released
Nightly · Development
Development ·
bffad322
Compukters
Toggle table of contents
0.7.0
Compukters
Target filter
Compukters
Switch theme
Search in API
Skip to content
Compukters
Compukters Core
/
compukter.input
/
KeyboardState
Keyboard
State
value
class
KeyboardState
(
val
gameTick
:
Long
,
val
connected
:
Boolean
,
held
:
Long
,
pressed
:
Long
,
released
:
Long
)
(
source
)
One observation; press/release edges coalesce since the preceding snapshot.
Members
Constructors
Keyboard
State
Link copied to clipboard
constructor
(
gameTick
:
Long
,
connected
:
Boolean
,
held
:
Long
,
pressed
:
Long
,
released
:
Long
)
Properties
connected
Link copied to clipboard
val
connected
:
Boolean
game
Tick
Link copied to clipboard
val
gameTick
:
Long
Functions
is
Down
Link copied to clipboard
fun
isDown
(
key
:
Key
)
:
Boolean
was
Pressed
Link copied to clipboard
fun
wasPressed
(
key
:
Key
)
:
Boolean
was
Released
Link copied to clipboard
fun
wasReleased
(
key
:
Key
)
:
Boolean