pub trait GamepadEventMethods<D: DomTypes> {
    // Required methods
    fn Gamepad(&self) -> Root<Dom<Gamepad>>;
    fn IsTrusted(&self) -> bool;
    fn Constructor(
        global: &Window,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        type_: DOMString,
        eventInitDict: &GamepadEventInit,
    ) -> Result<Root<Dom<GamepadEvent>>, Error>;
}

Required Methods§

source

fn Gamepad(&self) -> Root<Dom<Gamepad>>

source

fn IsTrusted(&self) -> bool

source

fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, type_: DOMString, eventInitDict: &GamepadEventInit, ) -> Result<Root<Dom<GamepadEvent>>, Error>

Object Safety§

This trait is not object safe.

Implementors§