Browse Source

temporary exit fullscreen when displaying an error

Nicolas Cannasse 9 years ago
parent
commit
89818718af
1 changed files with 6 additions and 1 deletions
  1. 6 1
      hxd/Event.hx

+ 6 - 1
hxd/Event.hx

@@ -41,7 +41,12 @@ class Event {
 	}
 
 	public function toString() {
-		return kind + "[" + Std.int(relX) + "," + Std.int(relY) + "]";
+		return kind + "[" + Std.int(relX) + "," + Std.int(relY) + "]" + switch( kind ) {
+		case EPush, ERelease, EReleaseOutside: ",button=" + button;
+		case EMove, EOver, EOut, EFocus, EFocusLost: "";
+		case EWheel: ",wheelDelta=" + wheelDelta;
+		case EKeyDown, EKeyUp: ",keyCode=" + keyCode+",charCode=" + charCode;
+		}
 	}
 
 }