created input, graphics and game namespaces
[physics.git] / src / input / inputManager.cpp
index cff17c9..aa21684 100644 (file)
@@ -17,19 +17,19 @@ static State keyState[keySize];
 
 /// ***** Initializers/Cleaners *****
 
-void inputInit()
+void input::init()
 {
     for(int i=0; i< keySize; i++)
         keyState[i] = isR;
 }
-void inputClean()
+void input::clean()
 {
 
 }
 
 /// ***** Public Methods *****
 
-void inputUpdate()
+void input::update()
 {
     SDL_Event event;
 
@@ -55,20 +55,20 @@ void inputUpdate()
     }
 }
 
-bool isPressed(Uint8 key)
+bool input::isPressed(Uint8 key)
 {
     return keyState[key] == isP || keyState[key] == wasP;
 }
-bool isReleased(Uint8 key)
+bool input::isReleased(Uint8 key)
 {
     return keyState[key] == isR || keyState[key] == wasR;
 }
 
-bool wasPressed(Uint8 key)
+bool input::wasPressed(Uint8 key)
 {
     return keyState[key] == wasP;
 }
-bool wasReleased(Uint8 key)
+bool input::wasReleased(Uint8 key)
 {
     return keyState[key] == wasR;
 }