|
@@ -65,7 +65,7 @@ export class DeviceInputSystem implements IDisposable {
|
|
|
*/
|
|
|
public static Create(engine: Engine): DeviceInputSystem {
|
|
|
// If running in Babylon Native, then defer to the native input system, which has the same public contract
|
|
|
- if (typeof _native.DeviceInputSystem !== 'undefined') {
|
|
|
+ if (typeof _native !== 'undefined' && _native.DeviceInputSystem) {
|
|
|
return new _native.DeviceInputSystem(engine);
|
|
|
}
|
|
|
|