simvx.graphics.platform._glfw¶
GLFW windowing backend.
Module Contents¶
Classes¶
WindowBackend implementation using GLFW. |
Data¶
API¶
- simvx.graphics.platform._glfw.__all__¶
[‘GlfwBackend’]
- class simvx.graphics.platform._glfw.GlfwBackend[source]¶
WindowBackend implementation using GLFW.
Initialization
- set_mouse_button_callback(callback: collections.abc.Callable[[int, int, int], None] | None) None[source]¶
- set_cursor_pos_callback(callback: collections.abc.Callable[[float, float], None] | None) None[source]¶
- set_cursor_shape(shape: int) None[source]¶
Set cursor shape. 0=arrow, 1=ibeam, 2=crosshair, 3=hand, 4=hresize, 5=vresize.
- poll_gamepads() list[tuple[int, dict[str, bool], dict[str, float]]][source]¶
Poll all connected gamepads. Returns list of (id, buttons, axes).