Module freya_elements::events::mouse
source · Structs§
- Data of a Mouse event.
Enums§
- Describes a button of a mouse controller.
Functions§
- The
clickevent fires when the user starts and ends a click in an element with the left button of the mouse. - The
globalclickevent fires when the user clicks anywhere. Note that this fires for all mouse buttons. You can check the specific variant with theMouseData’strigger_buttonproperty. - The
globalmousedownevent fires when the user starts clicking anywhere. Note that this fires for all mouse buttons. You can check the specific variant with theMouseData’strigger_buttonproperty. - The
globalmousemoveevent fires when the user moves the mouse anywhere in the app. - The
clickevent fires when the user clicks an element with the middle button of the mouse. - The
mousedownevent fires when the user starts clicking an element. Note that this fires for all mouse buttons. You can check the specific variant with theMouseData’strigger_buttonproperty. - The
mouseenterevent fires when the user starts hovering an element. - The
mouseleaveevent fires when the user stops hovering an element. - The
mousemoveevent fires when the user moves the mouse over an element. Unlikeonmouseenter, this fires even if the user was already hovering over the element. For that reason, it’s less efficient. - The
mouseupevent fires when the user ends the click in an element with the left button of the mouse. - The
clickevent fires when the user clicks an element with the right button of the mouse.