WebKitPlatform Class
This platform is for webkit based environments that need to be polled for updates.
Constructor
WebKitPlatform
(
-
listener
-
gamepadGetter
Parameters:
-
listener
Objectthe listener to provide _connect and _disconnect callbacks
-
gamepadGetter
Functionthe poll function to return an array of connected gamepads
Item Index
Methods
- factory static
- getType() static
- getType()
- isSupported
- update
Methods
factory
(
Object
static
-
listener
Provides a platform object that returns true for is isSupported() if valid.
Parameters:
-
listener
Objectthe listener to use
Returns:
Object:
a platform object
getType()
()
String
static
Returns:
String:
'WebKit'
getType()
()
String
Returns:
String:
'WebKit'
isSupported
()
Boolean
Returns:
Boolean:
true
update
()
Queries the currently connected gamepads and reports any changes.