pub struct Joystick { /* private fields */ }
Expand description

A physical joystick device manages its states, input devices and power levels.

Implementations§

Constructs from JoystickId if it is valid.

Returns the instance id JoystickId.

Returns the power level of the joystick.

Returns the GUID of the joystick.

Returns the name of the joystick.

Turns the joystick into enable.

Turns the joystick into disable.

Returns whether the joystick is enabled.

Returns axes Axes that the joystick has.

Returns an axis of index if it exists.

Returns trackballs Trackballs that the joystick has.

Returns a trackball of index if it exists.

Returns buttons Buttons that the joystick has.

Returns a button of index if it exists.

Returns hats Hats that the joystick has.

Returns a hat of index if it exists.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.