Struct stdweb::web::GamepadButton[][src]

pub struct GamepadButton(_);

The state of an individual button on a gamepad device.

(JavaScript docs)

Methods

impl GamepadButton
[src]

Is the button currently pressed?

(JavaScript docs)

Is the button currently touched?

MDN does not document this. Firefox supports it, but Chrome (as of v65) does not.

The amount which the button has been pressed, between 0.0 (not pressed), and 1.0 (fully pressed).

(JavaScript docs)

Trait Implementations

impl Clone for GamepadButton
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for GamepadButton
[src]

Formats the value using the given formatter. Read more

impl Eq for GamepadButton
[src]

impl PartialEq for GamepadButton
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl InstanceOf for GamepadButton
[src]

Checks whenever a given Reference if of type Self.

impl AsRef<Reference> for GamepadButton
[src]

Performs the conversion.

impl ReferenceType for GamepadButton
[src]

Converts a given reference into a concrete reference-like wrapper. Doesn't do any type checking; highly unsafe to use! Read more

impl From<GamepadButton> for Reference
[src]

Performs the conversion.

impl TryFrom<GamepadButton> for Reference
[src]

The type returned in the event of a conversion error.

Performs the conversion.

impl TryFrom<Reference> for GamepadButton
[src]

The type returned in the event of a conversion error.

Performs the conversion.

impl<'_r> TryFrom<&'_r Reference> for GamepadButton
[src]

The type returned in the event of a conversion error.

Performs the conversion.

impl TryFrom<Value> for GamepadButton
[src]

The type returned in the event of a conversion error.

Performs the conversion.

impl<'_r> TryFrom<&'_r Value> for GamepadButton
[src]

The type returned in the event of a conversion error.

Performs the conversion.

impl JsSerialize for GamepadButton
[src]

Auto Trait Implementations