Difference between revisions of "Event.MOUSE HOVER"

From GiderosMobile
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
  
 
=== Description ===
 
=== Description ===
This event is dispatched when mouse is moved and no buttons are pressed. The event is available only on desktops as Windows, MacOS, WinRT and HTML5.
+
This event is dispatched when mouse is moved and no buttons are pressed. The event is available only on desktops as Windows, MacOS, WinRT, Linux and HTML5.
  
 
Difference between [[Event.MOUSE_MOVE]] is that mouse hover does not have any mouse buttons pressed, whereas mouse move has at least 1 mouse button pressed.
 
Difference between [[Event.MOUSE_MOVE]] is that mouse hover does not have any mouse buttons pressed, whereas mouse move has at least 1 mouse button pressed.
  
 
Modifiers can have values of:
 
Modifiers can have values of:
*[[KeyCode.MODIFIER_NONE]]
+
*'''KeyCode.MODIFIER_NONE''', '''0'''
*[[KeyCode.MODIFIER_SHIFT]]
+
*'''KeyCode.MODIFIER_SHIFT''', '''1'''
*[[KeyCode.MODIFIER_CTRL]]
+
*'''KeyCode.MODIFIER_ALT''', '''2''' (LEFT)
*[[KeyCode.MODIFIER_ALT]]
+
*'''KeyCode.MODIFIER_CTRL''', '''4'''
*[[KeyCode.MODIFIER_META]]
+
*'''KeyCode.MODIFIER_ALT''', '''6''' (RIGHT, Alt Gr)
 +
*'''KeyCode.MODIFIER_META''', '''8'''
  
 
=== Parameters ===
 
=== Parameters ===
Line 23: Line 24:
 
'''button''': (number) button pressed - none<br/>
 
'''button''': (number) button pressed - none<br/>
 
'''modifiers''': (number) modifiers present<br/>
 
'''modifiers''': (number) modifiers present<br/>
'''mouseType''': (number) Origin of the mouse event<br/>
+
'''mouseType''': (string) origin of the mouse event. possible values: finger, pen, mouse, penTablet<br/>
  
 
{{Sprite}}
 
{{Sprite}}

Latest revision as of 05:18, 1 August 2025

Available since: Gideros 2015.08
Value: mouseHover
Defined by: Sprite

Description

This event is dispatched when mouse is moved and no buttons are pressed. The event is available only on desktops as Windows, MacOS, WinRT, Linux and HTML5.

Difference between Event.MOUSE_MOVE is that mouse hover does not have any mouse buttons pressed, whereas mouse move has at least 1 mouse button pressed.

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

x: (number) x coordinate of mouse cursor
y: (number) y coordinate of mouse cursor
rx: (number) unrounded x coordinate of the mouse cursor
ry: (number) unrounded y coordinate of the mouse cursor
button: (number) button pressed - none
modifiers: (number) modifiers present
mouseType: (string) origin of the mouse event. possible values: finger, pen, mouse, penTablet