Struct stdweb::web::Gamepad[][src]

pub struct Gamepad(_);

An individual gamepad/controller.

(JavaScript docs)

Methods

impl Gamepad
[src]

A string containing some information about this gamepad.

(JavaScript docs)

An auto-incrementing integer to uniquely identify a connected Gamepad.

(JavaScript docs)

Is this gamepad connected to the system, powered on, and usable?

(JavaScript docs)

Monotonically increasing time this gamepad was updated.

(JavaScript docs)

The mapping in use for this device.

(JavaScript docs)

Array of values for all axes of the gamepad.

(JavaScript docs)

Array of button states for all buttons of the gamepad.

(JavaScript docs)

Retrieve all connected gamepads, in an array indexed by each gamepad's index member.

Chrome doesn't update Gamepad state automatically, you must call this function each frame.

(JavaScript docs)

Trait Implementations

impl Clone for Gamepad
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Gamepad
[src]

Formats the value using the given formatter. Read more

impl Eq for Gamepad
[src]

impl PartialEq for Gamepad
[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 Gamepad
[src]

Checks whenever a given Reference if of type Self.

impl AsRef<Reference> for Gamepad
[src]

Performs the conversion.

impl ReferenceType for Gamepad
[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<Gamepad> for Reference
[src]

Performs the conversion.

impl TryFrom<Gamepad> for Reference
[src]

The type returned in the event of a conversion error.

Performs the conversion.

impl TryFrom<Reference> for Gamepad
[src]

The type returned in the event of a conversion error.

Performs the conversion.

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

The type returned in the event of a conversion error.

Performs the conversion.

impl TryFrom<Value> for Gamepad
[src]

The type returned in the event of a conversion error.

Performs the conversion.

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

The type returned in the event of a conversion error.

Performs the conversion.

impl JsSerialize for Gamepad
[src]

Auto Trait Implementations

impl Send for Gamepad

impl Sync for Gamepad