|
@@ -15,6 +15,14 @@ enum SystemValue {
|
|
IsMobile;
|
|
IsMobile;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+enum KeyboardLayout {
|
|
|
|
+ QWERTY;
|
|
|
|
+ AZERTY;
|
|
|
|
+ QWERTZ;
|
|
|
|
+ QZERTY;
|
|
|
|
+ Unknown;
|
|
|
|
+}
|
|
|
|
+
|
|
class System {
|
|
class System {
|
|
|
|
|
|
public static var width(get,never) : Int;
|
|
public static var width(get,never) : Int;
|
|
@@ -159,6 +167,12 @@ class System {
|
|
return js.Browser.navigator.language + "_" + js.Browser.navigator.language.toUpperCase();
|
|
return js.Browser.navigator.language + "_" + js.Browser.navigator.language.toUpperCase();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public static function getKeyboardLayout() : KeyboardLayout {
|
|
|
|
+ return Unknown;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public static dynamic function onKeyboardLayoutChange() : Void {}
|
|
|
|
+
|
|
// getters
|
|
// getters
|
|
|
|
|
|
static function get_width() : Int return Math.round(js.Browser.document.body.clientWidth * js.Browser.window.devicePixelRatio);
|
|
static function get_width() : Int return Math.round(js.Browser.document.body.clientWidth * js.Browser.window.devicePixelRatio);
|