Fields

@:optionaloptionaly:Null<Float>

  • The y value of a pointer device, if present.

@:optionaloptionalx:Null<Float>

  • The x value of a pointer device, if present.

@:optionaloptionalvalue:Null<Float>

  • The amount of input given by the user. This is usually 1 for buttons and 0-1 for analogue inputs. This is not present for mouse movement.

@:optionaloptionaltouch:Null<LuaArray<ScriptOnInputActionTouch>>

  • List of touch input, one element per finger, if present.

@:optional@:native("screen_y")optionalscreenY:Null<Float>

  • The screen space y value of a pointer device, if present.

@:optional@:native("screen_x")optionalscreenX:Null<Float>

  • The screen space x value of a pointer device, if present.

@:optional@:native("screen_dy")optionalscreenDy:Null<Float>

  • The change in screen space y value of a pointer device, if present.

@:optional@:native("screen_dx")optionalscreenDx:Null<Float>

  • The change in screen space x value of a pointer device, if present.

@:optionaloptionalrepeated:Null<Bool>

  • If the input was repeated this frame. This is similar to how a key on a keyboard is repeated when you hold it down. This is not present for mouse movement.

@:optionaloptionalreleased:Null<Bool>

  • If the input was released this frame. This is not present for mouse movement.

@:optionaloptionalpressed:Null<Bool>

  • If the input was pressed this frame. This is not present for mouse movement.

@:optional@:native("gamepad_unknown")optionalgamepadUnknown:Null<Bool>

  • Indicates that the connected gamepad is unidentified and will only generate raw input. Available on the gamepad_connected input event.

@:optional@:native("gamepad_name")optionalgamepadName:Null<String>

  • The name of the gamepad that was connected. Available on the gamepad_connected input event.

@:optionaloptionalgamepad:Null<Int>

  • The index of the gamepad device that provided the input.

@:optionaloptionaldy:Null<Float>

  • The change in y value of a pointer device, if present.

@:optionaloptionaldx:Null<Float>

  • The change in x value of a pointer device, if present.