Strata
Toggle table of contents
0.2.0
common
Target filter
common
Switch theme
Search in API
Skip to content
Strata
api
/
dev.s7a.strata.input
/
KeyboardEvent
/
Press
Press
data
class
Press
(
val
key
:
KeyCode
,
val
scanCode
:
Int
,
val
modifiers
:
KeyboardModifiers
=
KeyboardModifiers()
)
:
KeyboardEvent
(
source
)
Key press or repeat delivery.
Members
Constructors
Press
Link copied to clipboard
constructor
(
key
:
KeyCode
,
scanCode
:
Int
,
modifiers
:
KeyboardModifiers
=
KeyboardModifiers()
)
Properties
key
Link copied to clipboard
open
override
val
key
:
KeyCode
physical key identity.
modifiers
Link copied to clipboard
open
override
val
modifiers
:
KeyboardModifiers
captured modifier state.
scan
Code
Link copied to clipboard
open
override
val
scanCode
:
Int
platform scan code.