API Reference

Class List

pc.platform

global namespace that stores flags regarding platform environment and features support

if (pc.platform.touch) {
    // touch is supported
}

Summary

Static Properties

androidif it is Android
cocoonjsif it is CocoonJS
desktopis it a desktop or laptop device
gamepadsif platform supports gamepads
iosif it is iOS
mobileis it a mobile or tablet device
touchif platform supports touch input
windowsif it is Windows
xboxif it is Xbox

Details

Static Properties

androidif it is Android
cocoonjsif it is CocoonJS
desktopis it a desktop or laptop device
gamepadsif platform supports gamepads
iosif it is iOS
mobileis it a mobile or tablet device
touchif platform supports touch input
windowsif it is Windows
xboxif it is Xbox