PlayStateInput
| Kind | class |
| Package | play.helpers |
| Full name | play.helpers.PlayStateInput |
| Source | source/play/helpers/PlayStateInput.hx |
| Metadata | @:access(play.PlayState) @:access(backend.MusicBeatState) |
Public methods
onKeyPress
static function onKeyPress(state:PlayState, event:KeyboardEvent):Void
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
event | KeyboardEvent | — |
keyPressed
static function keyPressed(state:PlayState, key:Int):Void
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
key | Int | — |
sortHitNotes
static function sortHitNotes(a:Dynamic, b:Dynamic):Int
| Parameter | Type | Default |
|---|---|---|
a | Dynamic | — |
b | Dynamic | — |
onKeyRelease
static function onKeyRelease(state:PlayState, event:KeyboardEvent):Void
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
event | KeyboardEvent | — |
keyReleased
static function keyReleased(state:PlayState, key:Int)
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
key | Int | — |
getKeyFromEvent
static function getKeyFromEvent(state:PlayState, key:FlxKey):Int
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
key | FlxKey | — |
handleKeyInput
static function handleKeyInput(state:PlayState):Void
Hold notes
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
parseKeys
static function parseKeys(state:PlayState, ret:Array<Bool>, suffix:String = ''):Void
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
ret | Array<Bool> | — |
suffix (optional) | String | '' |