Browse Source

fixed missing onEvent() on some targets

Nicolas Cannasse 1 năm trước cách đây
mục cha
commit
b46f263eaa
1 tập tin đã thay đổi với 10 bổ sung0 xóa
  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 {