Difference between revisions of "Event.TOUCHES BEGIN"
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === This event is dispatched on touch begin action. It is possible to generate this event using mouse acti...") |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
+ | '''Value:''' touchesBegin<br/> | ||
=== Description === | === Description === | ||
This event is dispatched on touch begin action. It is possible to generate this event using mouse actions, by enabling this option through project settings. | This event is dispatched on touch begin action. It is possible to generate this event using mouse actions, by enabling this option through project settings. | ||
Line 10: | Line 11: | ||
`KeyCode.MODIFIER_ALT` | `KeyCode.MODIFIER_ALT` | ||
`KeyCode.MODIFIER_META` | `KeyCode.MODIFIER_META` | ||
+ | === Parameters === | ||
+ | '''touch.x''': (number) x coordinate of the current touch<br/> | ||
+ | '''touch.y''': (number) y coordinate of the current touch<br/> | ||
+ | '''touch.rx''': (number) unrounded x coordinate of the touch<br/> | ||
+ | '''touch.ry''': (number) unrounded y coordinate of the touch<br/> | ||
+ | '''touch.id''': (number) the id of current touch. This number is 1 if this is a first touch, 2 if it is a second, etc.<br/> | ||
+ | '''touch.type''': (string) Input type, possible values: finger, pen, mouse, penTablet<br/> | ||
+ | '''touch.pressure''': (number) Pressure on screen, 0 if not able to detect<br/> | ||
+ | '''touch.mouseButton''': (number) Mouse button which triggered this event, if any<br/> | ||
+ | '''touch.modifiers''': (number) Modifiers present<br/> | ||
+ | '''allTouches''': (table) lua table containing previously described touch table with x, y, rx, ry and id properties for all touches that are currently on device.<br/> |
Revision as of 10:41, 23 August 2018
Available since: Gideros 2011.6
Value: touchesBegin
Description
This event is dispatched on touch begin action. It is possible to generate this event using mouse actions, by enabling this option through project settings.
Modifiers can have values of:
`KeyCode.MODIFIER_NONE` `KeyCode.MODIFIER_SHIFT` `KeyCode.MODIFIER_CTRL` `KeyCode.MODIFIER_ALT` `KeyCode.MODIFIER_META`
Parameters
touch.x: (number) x coordinate of the current touch
touch.y: (number) y coordinate of the current touch
touch.rx: (number) unrounded x coordinate of the touch
touch.ry: (number) unrounded y coordinate of the touch
touch.id: (number) the id of current touch. This number is 1 if this is a first touch, 2 if it is a second, etc.
touch.type: (string) Input type, possible values: finger, pen, mouse, penTablet
touch.pressure: (number) Pressure on screen, 0 if not able to detect
touch.mouseButton: (number) Mouse button which triggered this event, if any
touch.modifiers: (number) Modifiers present
allTouches: (table) lua table containing previously described touch table with x, y, rx, ry and id properties for all touches that are currently on device.