PlatformEvent
An event taken from the platform's event queue by EventPump.pollOrNull.
The set of events is closed, so a when over them is exhaustive. The pump skips platform events that have no subclass here.
Mouse positions are in window points with (0, 0) at the top-left corner of the client area, the unit of Window.width; multiply by Window.pixelDensity for pixels.
Samples live in the sandbox because they need a display.
Inheritors
Types
Reports that the gamepad id was disconnected. The id is not used again.
Reports that button was released with the mouse at (x, y) in window points. Buttons past MouseButton.X2 are not reported.
Reports that the mouse moved to (x, y) in window points, by dx and dy points since the previous MouseMoved.
Asks the application to quit, for example because the user closed the last window.
Reports that a window's display scale changed, typically because it moved to a display with a different pixel density. pixelDensity is the window's Window.pixelDensity now.
Reports that a window gained keyboard focus, so key events go to it.
Reports that a window lost keyboard focus, so key events stop going to it.
Reports that a window's drawable size changed to pixelWidth by pixelHeight pixels.