Constructor

@:value({ id : 0 })new(id:Int = 0)

Variables

@:value(new se.input.Keyboard_charPressed_Signal())@:signal(char)charPressed:Keyboard_charPressed_Signal = new se.input.Keyboard_charPressed_Signal()

When this signal is emitted, only the slots with the exact parameter mask (char:String) values are invoked. Call charPressed(char) or charPressed.emit(char) to emit the signal

@:value(new se.input.Keyboard_down_Signal())@:signaldown:Keyboard_down_Signal = new se.input.Keyboard_down_Signal()

This signal invokes its slots with key:KeyCode parameter when emitted. Call down(key) or down.emit(key) to emit the signal

@:value(new se.input.Keyboard_hold_Signal())@:signalhold:Keyboard_hold_Signal = new se.input.Keyboard_hold_Signal()

This signal invokes its slots with key:KeyCode parameter when emitted. Call hold(key) or hold.emit(key) to emit the signal

@:value(0.8)holdInterval:Float = 0.8

@:value(new se.input.Keyboard_keyDown_Signal())@:signal(key)keyDown:Keyboard_keyDown_Signal = new se.input.Keyboard_keyDown_Signal()

When this signal is emitted, only the slots with the exact parameter mask (key:se.input.Keyboard.KeyCode) values are invoked. Call keyDown(key) or keyDown.emit(key) to emit the signal

@:value(new se.input.Keyboard_keyHold_Signal())@:signal(key)keyHold:Keyboard_keyHold_Signal = new se.input.Keyboard_keyHold_Signal()

When this signal is emitted, only the slots with the exact parameter mask (key:se.input.Keyboard.KeyCode) values are invoked. Call keyHold(key) or keyHold.emit(key) to emit the signal

@:value(new se.input.Keyboard_keyUp_Signal())@:signal(key)keyUp:Keyboard_keyUp_Signal = new se.input.Keyboard_keyUp_Signal()

When this signal is emitted, only the slots with the exact parameter mask (key:se.input.Keyboard.KeyCode) values are invoked. Call keyUp(key) or keyUp.emit(key) to emit the signal

@:value([])keysDown:Array<KeyCode> = []

@:value(new se.input.Keyboard_pressed_Signal())@:signalpressed:Keyboard_pressed_Signal = new se.input.Keyboard_pressed_Signal()

This signal invokes its slots with char:String parameter when emitted. Call pressed(char) or pressed.emit(char) to emit the signal

@:value(new se.input.Keyboard_up_Signal())@:signalup:Keyboard_up_Signal = new se.input.Keyboard_up_Signal()

This signal invokes its slots with key:KeyCode parameter when emitted. Call up(key) or up.emit(key) to emit the signal

Methods

inlineoffCharPressed(slot:() ‑> Void):Void

Shortcut for charPressed signal's function disconnect which disconnects slots from it.

Parameters:

slot

a callback to remove from charPressed's list

inlineoffDown(slot:(key:KeyCode) ‑> Void):Void

Shortcut for down signal's function disconnect which disconnects slots from it.

Parameters:

slot

a callback to remove from down's list

inlineoffHold(slot:(key:KeyCode) ‑> Void):Void

Shortcut for hold signal's function disconnect which disconnects slots from it.

Parameters:

slot

a callback to remove from hold's list

inlineoffKeyDown(slot:() ‑> Void):Void

Shortcut for keyDown signal's function disconnect which disconnects slots from it.

Parameters:

slot

a callback to remove from keyDown's list

inlineoffKeyHold(slot:() ‑> Void):Void

Shortcut for keyHold signal's function disconnect which disconnects slots from it.

Parameters:

slot

a callback to remove from keyHold's list

inlineoffKeyUp(slot:() ‑> Void):Void

Shortcut for keyUp signal's function disconnect which disconnects slots from it.

Parameters:

slot

a callback to remove from keyUp's list

inlineoffPressed(slot:(char:String) ‑> Void):Void

Shortcut for pressed signal's function disconnect which disconnects slots from it.

Parameters:

slot

a callback to remove from pressed's list

inlineoffUp(slot:(key:KeyCode) ‑> Void):Void

Shortcut for up signal's function disconnect which disconnects slots from it.

Parameters:

slot

a callback to remove from up's list

inlineonCharPressed(char:String, slot:() ‑> Void):Void

Shortcut for charPressed signal's function connect which connects slots to it.

Parameters:

char

Mask parameter of the slot

slot

a callback to invoke when charPressed is emitted

inlineonDown(slot:(key:KeyCode) ‑> Void):Void

Shortcut for down signal's function connect which connects slots to it.

Parameters:

slot

a callback to invoke when down is emitted

inlineonHold(slot:(key:KeyCode) ‑> Void):Void

Shortcut for hold signal's function connect which connects slots to it.

Parameters:

slot

a callback to invoke when hold is emitted

onHotkeyDown(hotkey:Array<KeyCode>, slot:() ‑> Void):Void

inlineonKeyDown(key:KeyCode, slot:() ‑> Void):Void

Shortcut for keyDown signal's function connect which connects slots to it.

Parameters:

key

Mask parameter of the slot

slot

a callback to invoke when keyDown is emitted

inlineonKeyHold(key:KeyCode, slot:() ‑> Void):Void

Shortcut for keyHold signal's function connect which connects slots to it.

Parameters:

key

Mask parameter of the slot

slot

a callback to invoke when keyHold is emitted

inlineonKeyUp(key:KeyCode, slot:() ‑> Void):Void

Shortcut for keyUp signal's function connect which connects slots to it.

Parameters:

key

Mask parameter of the slot

slot

a callback to invoke when keyUp is emitted

inlineonPressed(slot:(char:String) ‑> Void):Void

Shortcut for pressed signal's function connect which connects slots to it.

Parameters:

slot

a callback to invoke when pressed is emitted

inlineonUp(slot:(key:KeyCode) ‑> Void):Void

Shortcut for up signal's function connect which connects slots to it.

Parameters:

slot

a callback to invoke when up is emitted