Event.MOUSE HOVER: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
Line 3: Line 3:
'''Value:''' mouseHover<br/>
'''Value:''' mouseHover<br/>
=== Description ===
=== Description ===
This event is dispatched when mouse is moved and not button is pressed. The event is available only on desktops as Windows, MacOS and WinRT
<translate>This event is dispatched when mouse is moved and not button is pressed. The event is available only on desktops as Windows, MacOS and WinRT


Difference between `Event.MOUSE_MOVE`
Difference between [[[Event.MOUSE_MOVE]]]
  is that mouse hover does not have any mouse buttons pressed, but mouse move has at least 1 mouse button pressed.
  is that mouse hover does not have any mouse buttons pressed, but 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]]]
`KeyCode.MODIFIER_SHIFT`
[[[KeyCode.MODIFIER_SHIFT]]]
`KeyCode.MODIFIER_CTRL`
[[[KeyCode.MODIFIER_CTRL]]]
`KeyCode.MODIFIER_ALT`
[[[KeyCode.MODIFIER_ALT]]]
`KeyCode.MODIFIER_META`
[[[KeyCode.MODIFIER_META]]]</translate>
=== Parameters ===
=== Parameters ===
'''x''': (number) x coordinate of mouse cursor<br/>
'''x''': (number) <translate>x coordinate of mouse cursor</translate><br/>
'''y''': (number) y coordinate of mouse cursor<br/>
'''y''': (number) <translate>y coordinate of mouse cursor</translate><br/>
'''rx''': (number) unrounded x coordinate of the mouse cursor<br/>
'''rx''': (number) <translate>unrounded x coordinate of the mouse cursor</translate><br/>
'''ry''': (number) unrounded y coordinate of the mouse cursor<br/>
'''ry''': (number) <translate>unrounded y coordinate of the mouse cursor</translate><br/>
'''button''': (number) button pressed - none<br/>
'''button''': (number) <translate>button pressed - none</translate><br/>
'''modifiers''': (number) Modifiers present<br/>
'''modifiers''': (number) <translate>Modifiers present</translate><br/>

Revision as of 12:38, 23 August 2018

Available since: Gideros 2015.08
Value: mouseHover

Description

This event is dispatched when mouse is moved and not button is pressed. The event is available only on desktops as Windows, MacOS and WinRT

Difference between [[[Event.MOUSE_MOVE]]]

is that mouse hover does not have any mouse buttons pressed, but mouse move has at least 1 mouse button pressed.

Modifiers can have values of: [[[KeyCode.MODIFIER_NONE]]] [[[KeyCode.MODIFIER_SHIFT]]] [[[KeyCode.MODIFIER_CTRL]]] [[[KeyCode.MODIFIER_ALT]]] [[[KeyCode.MODIFIER_META]]]

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