Răsfoiți Sursa

Add OsEvent

Daniele Bartolini 12 ani în urmă
părinte
comite
0bf307a551
1 a modificat fișierele cu 12 adăugiri și 0 ștergeri
  1. 12 0
      engine/os/OsTypes.h

+ 12 - 0
engine/os/OsTypes.h

@@ -82,4 +82,16 @@ struct OsAccelerometerEvent
 	float z;	
 	float z;	
 };
 };
 
 
+struct OsEvent
+{
+	OsEventType type;
+	union
+	{
+		OsMouseEvent mouse;
+		OsKeyboardEvent keyboard;
+		OsTouchEvent touch;
+		OsAccelerometerEvent accelerometer;
+	};
+};
+
 } // namespace crown
 } // namespace crown