Skip to main content

Crate sgl_input

Crate sgl_input 

Source
Expand description

Caller-polled controller input. Games own the window/event loop, focus, bindings, active-player selection and menu behavior.

Construct and poll on the window’s main thread. macOS uses Apple’s Game Controller framework; other targets use Gilrs. See the controllers example.

Structs§

Event
Gamepad
GamepadId
Gamepads

Enums§

Axis
Stick axes range from -1 to 1. Positive Y always points up.
Button
Face buttons are named by position: South is Xbox A / PlayStation Cross.
EventType