Kaynağa Gözat

Switch to struct

Daniele Bartolini 12 yıl önce
ebeveyn
işleme
7cdaffaf52

+ 1 - 3
engine/input/Accelerometer.h

@@ -33,10 +33,8 @@ namespace crown
 {
 
 /// Interface for accessing accelerometer input device.
-class Accelerometer
+struct Accelerometer
 {
-public:
-	
 	//-----------------------------------------------------------------------------
 	Accelerometer()
 		: m_orientation(0.0f, 0.0f, 0.0f)

+ 1 - 4
engine/input/Keyboard.h

@@ -28,7 +28,6 @@ OTHER DEALINGS IN THE SOFTWARE.
 
 #include "Types.h"
 #include "KeyCode.h"
-#include "OS.h"
 #include "Assert.h"
 
 #undef MK_SHIFT
@@ -46,10 +45,8 @@ enum ModifierKey
 };
 
 /// Interface for accessing keyboard input device.
-class Keyboard
+struct Keyboard
 {
-public:
-
 	Keyboard()
 		: m_modifier(0), m_current_frame(0), m_last_key(KC_NOKEY)
 	{

+ 1 - 3
engine/input/Touch.h

@@ -44,10 +44,8 @@ struct PointerData
 };
 
 /// Interface for accessing touch input device.
-class Touch
+struct Touch
 {
-public:
-
 	/// Returns whether the touch pointer @a id is up.
 	bool touch_up(uint16_t id) const
 	{