stdweb::web::event

Trait IGamepadEvent

Source
pub trait IGamepadEvent: IEvent {
    // Provided method
    fn gamepad(&self) -> Gamepad { ... }
}
Expand description

A GamepadEvent is fired on the window object, when a gamepad is connected or disconnected to the system.

(JavaScript docs)

Provided Methods§

Source

fn gamepad(&self) -> Gamepad

Returns the gamepad associated with this event.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§