We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3322b3 commit b3f1e18Copy full SHA for b3f1e18
2 files changed
hxd/System.js.hx
@@ -99,7 +99,10 @@ class System {
99
}
100
101
public static function getValue( s : SystemValue ) : Bool {
102
- return false;
+ return switch( s ) {
103
+ case IsWindowed: true;
104
+ default: false;
105
+ }
106
107
108
public static function exit() : Void {
hxd/Window.js.hx
@@ -152,6 +152,14 @@ class Window {
152
153
154
public function setFullScreen( v : Bool ) : Void {
155
+ var doc = js.Browser.document;
156
+ var elt : Dynamic = doc.documentElement;
157
+ if( (doc.fullscreenElement == elt) == v )
158
+ return;
159
+ if( v )
160
+ elt.requestFullscreen();
161
+ else
162
+ doc.exitFullscreen();
163
164
165
public function setCurrent() {
0 commit comments