/// ***** 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;
}
}
-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;
}