Expand description
Events data.
Modules§
Structs§
- Data of a Keyboard event.
- Data of a Keyboard event.
- Pressed modifier keys.
- Data of a Mouse event.
- Data of a Mouse event.
- Data of a Touch event.
- Data of a Wheel event.
Enums§
- Code is the physical position of a key.
- Describes the force of a touch event
- Key represents the meaning of a keypress.
- Describes a button of a mouse controller.
- The type of device that triggered a Pointer event.
- Describes touch-screen input state.
Functions§
- Return the equivalent Winit’s
Key
in keyboard_types - Return the equivalent of Winit’s
PhysicalKey
in keyboard_types - The
click
event fires when the user clicks an element with the left button of the mouse. - The
filedrop
event fires when the user drops a file over the element. - The
globalclick
event fires when the user clicks anywhere. Note that this fires for all mouse buttons. You can check the specific variant with theMouseData
’strigger_button
property. - The
onglobalfilehover
event fires when the user hovers a file over the window. - The
onglobalfilehovercancelled
event fires when the user cancels the hovering of a file over the window. It’s the opposite ofonglobalfilehover
. - The
globalmousedown
event fires when the user starts clicking anywhere. Note that this fires for all mouse buttons. You can check the specific variant with theMouseData
’strigger_button
property. - The
globalmouseover
event fires when the user moves the mouse anywhere in the app. - The
globalpointerup
event fires when the user releases the point anywhere in the app. - The
keydown
event fires when the user starts pressing any key. - The
keyup
event fires when the user releases any key being pressed. - The
click
event fires when the user clicks an element with the middle button of the mouse. - The
mousedown
event 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_button
property. - The
mouseenter
event fires when the user starts hovering an element. - The
mouseleave
event fires when the user stops hovering an element. - The
mouseover
event fires when the user moves the mouse over an element. Unlikeonmouseover
, this fires even if the user was already hovering over the element. For that reason, it’s less efficient. - The
pointerdown
event fires when the user clicks/starts touching an element. - The
pointerenter
event fires when the user starts hovering/touching an element. - The
pointerleave
event fires when the user stops hovering/touching an element. - The
pointerover
event fires when the user hovers/touches over an element. Unlikeonpointerenter
, this fires even if the user was already hovering over the element. For that reason, it’s less efficient. - The
pointerup
event fires when the user releases their mouse button or stops touching the element. - The
click
event fires when the user clicks an element with the right button of the mouse. - The
touchcancel
event fires when the user cancels the touching, this is usually caused by the hardware or the OS. Also seeontouchend
. - The
touchend
event fires when the user stops touching an element. - The
touchmove
event fires when the user is touching over an element. - The
touchstart
event fires when the user starts touching an element. - The
wheel
event fires when the user scrolls the mouse wheel while hovering over the element.