InputEvent - stingray.Input.InputEvent table reference - Stingray Lua API Reference

stingray.Input.InputEvent table reference

Description

This table contains all info needed from a Input Event returned by the event_queue function, you may use the sender as you would a regular InputController.

Data Members

id : integer

The id is used to differentiate different buttons, axes or touch-contacts.

sender : stingray.InputController

This value equals one of the InputControllers e.g Mouse, Keyboard, TouchPanel1 etc.
Constant used to differentiate between buttons, axes & touches.

If the InputEventType returns a button event this value will be nil.