Difference between revisions of "Event.TOUCHES END"

From GiderosMobile
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Value</translate>:''' touchesEnd<br/>
+
'''Value:''' touchesEnd<br/>
=== <translate>Descriptio</translate>n ===
+
'''Defined by:''' [[Sprite]]<br/>
<translate>This event is dispatched then touch is ended. It is possible to generate this event using mouse actions, by enabling this option through project settings.
+
 
 
+
=== Description ===
  Modifiers can have values of:
+
This event is dispatched when touch is ended. It is possible to generate this event using mouse actions, by enabling this option through project settings.
[[Special:MyLanguage/KeyCode.MODIFIER_NONE|KeyCode.MODIFIER_NONE]]
+
 
[[Special:MyLanguage/KeyCode.MODIFIER_SHIFT|KeyCode.MODIFIER_SHIFT]]
+
Modifiers can have values of:
[[Special:MyLanguage/KeyCode.MODIFIER_CTRL|KeyCode.MODIFIER_CTRL]]
+
*'''KeyCode.MODIFIER_NONE''', '''0'''
[[Special:MyLanguage/KeyCode.MODIFIER_ALT|KeyCode.MODIFIER_ALT]]
+
*'''KeyCode.MODIFIER_SHIFT''', '''1'''
[[Special:MyLanguage/KeyCode.MODIFIER_META|KeyCode.MODIFIER_META]]</translate>
+
*'''KeyCode.MODIFIER_ALT''', '''2''' (LEFT)
=== <translate>Parameters</translate> ===
+
*'''KeyCode.MODIFIER_CTRL''', '''4'''
'''touch.x''': (number) <translate>x coordinate of the current touch</translate><br/>
+
*'''KeyCode.MODIFIER_ALT''', '''6''' (RIGHT, Alt Gr)
'''touch.y''': (number) <translate>y coordinate of the current touch</translate><br/>
+
*'''KeyCode.MODIFIER_META''', '''8'''
'''touch.rx''': (number) <translate>unrounded x coordinate of the touch</translate><br/>
+
 
'''touch.ry''': (number) <translate>unrounded y coordinate of the touch</translate><br/>
+
=== Parameters ===
'''touch.id''': (number) <translate>the id of current touch. This number is 1 if this is a first touch, 2 if it is a second, etc.</translate><br/>
+
'''touch.x''': (number) x coordinate of the current touch<br/>
'''touch.type''': (string) <translate>Input type, possible values: finger, pen, mouse, penTablet</translate><br/>
+
'''touch.y''': (number) y coordinate of the current touch<br/>
'''touch.pressure''': (number) <translate>Pressure on screen, 0 if not able to detect</translate><br/>
+
'''touch.rx''': (number) unrounded x coordinate of the touch<br/>
'''touch.mouseButton''': (number) <translate>Mouse button which triggered this event, if any</translate><br/>
+
'''touch.ry''': (number) unrounded y coordinate of the touch<br/>
'''touch.modifiers''': (number) <translate>Modifiers present</translate><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/>
'''allTouches''': (table) <translate>lua table containing previously described touch table with x, y, rx, ry and id properties for all touches that are currently on device.</translate><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/>
 +
 
 +
{{Sprite}}

Latest revision as of 05:27, 1 August 2025

Available since: Gideros 2011.6
Value: touchesEnd
Defined by: Sprite

Description

This event is dispatched when touch is ended. 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, 0
  • KeyCode.MODIFIER_SHIFT, 1
  • KeyCode.MODIFIER_ALT, 2 (LEFT)
  • KeyCode.MODIFIER_CTRL, 4
  • KeyCode.MODIFIER_ALT, 6 (RIGHT, Alt Gr)
  • KeyCode.MODIFIER_META, 8

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