Platform

Provides information about the browser environment. Access the global singleton from L3D.Loki.platform.

Properties

gamepads bool

Does the platform support gamepads?

isAndroid bool

Is it an Android device?

isDesktop bool

Is it a desktop or laptop device?

isIOS bool

Is it an iOS device?

isMobile bool

Is it a mobile or tablet device?

isWindows bool

Is it running on Windows?

isXbox bool

Is it running on an Xbox?

passiveEvents bool

Does the platform support passive events for EventTarget.addEventListener?

touch bool

Does the platform support touch input?

workers bool

Does the platform support web workers?