[][src]Module ggez::input::gamepad

Gamepad utility functions.

This is going to be a bit of a work-in-progress as gamepad input gets fleshed out. The gilrs crate needs help to add better cross-platform support. Why not give it a hand?

TODO: All of this.

Structs

GilrsGamepadContext

A structure that contains gamepad state using gilrs.

NullGamepadContext

A structure that implements GamepadContext but does nothing; a stub for when you don't need it or are on a platform that gilrs doesn't support.

Traits

GamepadContext

Trait object defining a gamepad/joystick context.

Functions

axis

Returns the state of the given axis on a gamepad.

button_pressed

Returns the state of the given button on a gamepad.

gamepad

Returns the Gamepad associated with an id.

list_gamepads

Lists all gamepads. With metainfo, maybe?