瀏覽代碼

fixed missing onEvent() on some targets

Nicolas Cannasse 1 年之前
父節點
當前提交
b46f263eaa
共有 1 個文件被更改,包括 10 次插入0 次删除
  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 {