Struct gilrs_core::Gamepad[][src]

#[repr(transparent)]
pub struct Gamepad { /* fields omitted */ }
Expand description

Provides information about gamepad.

Implementations

Returns name of gamepad.

Returns true if gamepad is connected.

Returns UUID that represents gamepad model.

Returned UUID should be the same as SLD2 uses. If platform does not provide any method to distinguish between gamepad models, nil UUID is returned.

It is recommended to process with the UUID crate. Use Uuid::from_bytes method to create a Uuid from the returned bytes.

Returns device’s power supply state.

Returns true if force feedback is supported by device,

Creates FfDevice corresponding to this gamepad.

Returns slice with EvCodes that may appear in button related events.

Returns slice with EvCodes that may appear in axis related events.

Returns information about specific axis. None may be returned if device doesn’t have axis with provided EvCode.

Trait Implementations

Formats the value using the given formatter. Read more

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

Performs the conversion.

Performs the conversion.

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.