webapi: github.com/gowebapi/webapi/device/gamepad Index | Files

package gamepad

import "github.com/gowebapi/webapi/device/gamepad"

Package gamepad is low-level interface that represents gamepad devices.

Index

Package Files

doc.go gamepad.go

type Gamepad Uses

type Gamepad struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Gamepad

func GamepadFromJS Uses

func GamepadFromJS(value js.Wrapper) *Gamepad

GamepadFromJS is casting a js.Wrapper into Gamepad.

func (*Gamepad) Axes Uses

func (_this *Gamepad) Axes() *javascript.FrozenArray

Axes returning attribute 'axes' with type javascript.FrozenArray (idl: FrozenArray).

func (*Gamepad) Buttons Uses

func (_this *Gamepad) Buttons() *javascript.FrozenArray

Buttons returning attribute 'buttons' with type javascript.FrozenArray (idl: FrozenArray).

func (*Gamepad) Connected Uses

func (_this *Gamepad) Connected() bool

Connected returning attribute 'connected' with type bool (idl: boolean).

func (*Gamepad) DisplayId Uses

func (_this *Gamepad) DisplayId() uint

DisplayId returning attribute 'displayId' with type uint (idl: unsigned long).

func (*Gamepad) Id Uses

func (_this *Gamepad) Id() string

Id returning attribute 'id' with type string (idl: DOMString).

func (*Gamepad) Index Uses

func (_this *Gamepad) Index() int

Index returning attribute 'index' with type int (idl: long).

func (*Gamepad) JSValue Uses

func (_this *Gamepad) JSValue() js.Value

func (*Gamepad) Mapping Uses

func (_this *Gamepad) Mapping() GamepadMappingType

Mapping returning attribute 'mapping' with type GamepadMappingType (idl: GamepadMappingType).

func (*Gamepad) Timestamp Uses

func (_this *Gamepad) Timestamp() float64

Timestamp returning attribute 'timestamp' with type float64 (idl: double).

type GamepadButton Uses

type GamepadButton struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: GamepadButton

func GamepadButtonFromJS Uses

func GamepadButtonFromJS(value js.Wrapper) *GamepadButton

GamepadButtonFromJS is casting a js.Wrapper into GamepadButton.

func (*GamepadButton) JSValue Uses

func (_this *GamepadButton) JSValue() js.Value

func (*GamepadButton) Pressed Uses

func (_this *GamepadButton) Pressed() bool

Pressed returning attribute 'pressed' with type bool (idl: boolean).

func (*GamepadButton) Touched Uses

func (_this *GamepadButton) Touched() bool

Touched returning attribute 'touched' with type bool (idl: boolean).

func (*GamepadButton) Value Uses

func (_this *GamepadButton) Value() float64

Value returning attribute 'value' with type float64 (idl: double).

type GamepadEvent Uses

type GamepadEvent struct {
    domcore.Event
}

class: GamepadEvent

func GamepadEventFromJS Uses

func GamepadEventFromJS(value js.Wrapper) *GamepadEvent

GamepadEventFromJS is casting a js.Wrapper into GamepadEvent.

func NewGamepadEvent Uses

func NewGamepadEvent(_type string, eventInitDict *GamepadEventInit) (_result *GamepadEvent)

func (*GamepadEvent) Gamepad Uses

func (_this *GamepadEvent) Gamepad() *Gamepad

Gamepad returning attribute 'gamepad' with type Gamepad (idl: Gamepad).

type GamepadEventInit Uses

type GamepadEventInit struct {
    Bubbles    bool
    Cancelable bool
    Composed   bool
    Gamepad    *Gamepad
}

dictionary: GamepadEventInit

func GamepadEventInitFromJS Uses

func GamepadEventInitFromJS(value js.Wrapper) *GamepadEventInit

GamepadEventInitFromJS is allocating a new GamepadEventInit object and copy all values from input javascript object

func (*GamepadEventInit) JSValue Uses

func (_this *GamepadEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type GamepadMappingType Uses

type GamepadMappingType int

enum: GamepadMappingType

const (
    EmptyString0GamepadMappingType GamepadMappingType = iota
    StandardGamepadMappingType
)

func GamepadMappingTypeFromJS Uses

func GamepadMappingTypeFromJS(value js.Value) GamepadMappingType

GamepadMappingTypeFromJS is converting a javascript value into a GamepadMappingType enum value.

func (*GamepadMappingType) JSValue Uses

func (this *GamepadMappingType) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (GamepadMappingType) Value Uses

func (this GamepadMappingType) Value() string

Value is converting this into javascript defined string value

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

func (u *Union) JSValue() js.Value

Package gamepad imports 3 packages (graph) and is imported by 1 packages. Updated 2019-09-16. Refresh now. Tools for package owners.