public class MouseWheelEvent extends GuiEvent:
Mouse wheel event payload emitted by GUI widgets.
Deltas use the native wheel convention: a positive vertical delta means scrolling up, a negative vertical delta means scrolling down. Backends normalize one wheel notch to roughly 120, matching the Win32 convention.
widget.mouseWheel += lambda(e: MouseWheelEvent): print(e.deltaY)
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | altalt as Boolean |
Whether Alt was held during the wheel event. |
| public readonly property | controlcontrol as Boolean |
Whether Control was held during the wheel event. |
| public readonly property | deltaXdeltaX as Int |
Horizontal wheel delta. |
| public readonly property | deltaYdeltaY as Int |
Vertical wheel delta. |
| public readonly property | shiftshift as Boolean |
Whether Shift was held during the wheel event. |
| public readonly property | xx as Int |
Pointer x coordinate in window-client coordinates. |
| public readonl | yy property y as Int |
Pointer y coordinate in window-client coordinates. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | MouseWheelEvent | Creates a mouse wheel event payload. |