Events
keyDown(key:Key):Void
Parameters:
key | The key being pressed |
---|
Events:
keyDown | Triggered when a key from the keyboard is being pressed. |
---|
Variables
Methods
inlinekeyJustReleased(keyCode:KeyCode):Bool
inlinekeyJustReleased(keyCode:KeyCode, owner:Entity):Bool
inlinescanJustPressed(scanCode:ScanCode):Bool
inlinescanJustPressed(scanCode:ScanCode, owner:Entity):Bool
inlinescanJustReleased(scanCode:ScanCode):Bool
inlinescanJustReleased(scanCode:ScanCode, owner:Entity):Bool
inlinegamepadPressed(gamepadId:Int, button:GamepadButton):Bool
inlinegamepadPressed(gamepadId:Int, button:GamepadButton, owner:Entity):Bool
inlinegamepadJustPressed(gamepadId:Int, button:GamepadButton):Bool
inlinegamepadJustPressed(gamepadId:Int, button:GamepadButton, owner:Entity):Bool
inlinegamepadJustReleased(gamepadId:Int, button:GamepadButton):Bool
inlinegamepadJustReleased(gamepadId:Int, button:GamepadButton, owner:Entity):Bool
startGamepadRumble(gamepadId:Int, duration:Float, lowFrequency:Float, highFrequency:Float):Void
Starts a controller rumble.
Parameters:
gamepadId | The id of the gamepad getting rumble |
---|---|
duration | The duration, in seconds |
lowFrequency | Low frequency: value between 0 and 1 |
highFrequency | High frequency: value between 0 and 1 |