RenderLoop::Window(Key, MouseButton)
Inherits Reference / Object
Produces an abstraction around a window object
so you can use any window context you want.
The generics Key and MouseButton are enums
that define the available values.
TODO: maybe pass in the cursor as a generic as well so we we can reduce boilerplate.
Instance methods
cursor_position
Sourcecursor_position=(position : RenderLoop::Position)
Sourcedestroy
Sourcekey_pressed?(k : Key) : Bool
Sourcekeys
Sourcemouse_button_pressed?(b : MouseButton) : Bool
Sourcemouse_buttons
Sourceshould_close?
Sourcesize(s : RenderLoop::Size)
Sourcesize
Sourcestartup
Source