InputFrame¶
Import: import system.window;
Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.
InputFrame¶
Everything Window.poll collected since the previous poll. The states are snapshots: keeping an older frame does not change it.
events¶
The events since the previous poll, in the order they happened.
keyboard¶
The keyboard after applying this frame's events.
mouse¶
The mouse after applying this frame's events.
gamepads¶
The connected gamepads, sampled during this poll.
delta_seconds¶
Seconds since the previous poll on the monotonic clock; 0.0 for the first poll. Multiply speeds by this value to move at the same rate at any frame rate.
time_seconds¶
Seconds since the window was created, on the monotonic clock.