Sfoglia il codice sorgente

fixed missing onEvent() on some targets

Nicolas Cannasse 1 anno fa
parent
commit
b46f263eaa
1 ha cambiato i file con 10 aggiunte e 0 eliminazioni
  1. 10 0
      hxd/Window.hl.hx

+ 10 - 0
hxd/Window.hl.hx

@@ -651,6 +651,11 @@ class Window {
 	}
 
 	function get_isFocused() : Bool return true;
+	
+	function onEvent( e : Event ) : Bool {
+		event(e);
+		return true;
+	}
 
 	#else
 
@@ -662,6 +667,11 @@ class Window {
 
 	function get_isFocused() : Bool return false;
 
+	function onEvent( e : Event ) : Bool {
+		event(e);
+		return true;
+	}
+
 	#end
 
 	function get_displayMode() : DisplayMode {