API Docs for: 0.0.1
Show:

WebKitPlatform Class

Defined in: gamepad.js:123
Module: Gamepad

This platform is for webkit based environments that need to be polled for updates.

Constructor

WebKitPlatform

(
  • listener
  • gamepadGetter
)

Defined in gamepad.js:123

Parameters:

  • listener Object

    the listener to provide _connect and _disconnect callbacks

  • gamepadGetter Function

    the poll function to return an array of connected gamepads

Item Index

Methods

Methods

factory

(
  • listener
)
Object static

Defined in gamepad.js:139

Provides a platform object that returns true for is isSupported() if valid.

Parameters:

  • listener Object

    the listener to use

Returns:

Object:

a platform object

getType()

() String static

Defined in gamepad.js:165

Returns:

String:

'WebKit'

getType()

() String

Defined in gamepad.js:174

Returns:

String:

'WebKit'

isSupported

() Boolean

Defined in gamepad.js:182

Returns:

Boolean:

true

update

()

Defined in gamepad.js:190

Queries the currently connected gamepads and reports any changes.