Daniele Bartolini 8 years ago
parent
commit
6846e06bf0
2 changed files with 7 additions and 6 deletions
  1. 6 5
      src/device/input_manager.h
  2. 1 1
      src/device/input_types.h

+ 6 - 5
src/device/input_manager.h

@@ -6,16 +6,16 @@
 #pragma once
 
 #include "config.h"
-#include "types.h"
 #include "input_types.h"
 #include "memory_types.h"
+#include "types.h"
 
 namespace crown
 {
 /// Manages input devices.
 ///
 /// @ingroup Input
-class InputManager
+struct InputManager
 {
 	Allocator* _allocator;
 	InputDevice* _keyboard;
@@ -23,9 +23,10 @@ class InputManager
 	InputDevice* _touch;
 	InputDevice* _joypad[CROWN_MAX_JOYPADS];
 
-public:
-
+	/// Constructor.
 	InputManager(Allocator& a);
+
+	/// Destructor.
 	~InputManager();
 
 	/// Returns the default keyboard input device.
@@ -43,7 +44,7 @@ public:
 	/// Returns the joypad @a i.
 	InputDevice* joypad(u8 i);
 
-	/// Updates the input devices
+	/// Updates the input devices.
 	void update();
 };
 

+ 1 - 1
src/device/input_types.h

@@ -9,8 +9,8 @@
 /// @ingroup Device
 namespace crown
 {
-class InputManager;
 struct InputDevice;
+struct InputManager;
 
 /// Enumerates input device types.
 ///