return state & SDL_BUTTON(3);
}
-bool input::isPressed(Uint8 key)
+bool input::isPressed(SDLKey key)
{
return keyState[key] == isP || keyState[key] == wasP;
}
-bool input::isReleased(Uint8 key)
+bool input::isReleased(SDLKey key)
{
return keyState[key] == isR || keyState[key] == wasR;
}
-bool input::wasPressed(Uint8 key)
+bool input::wasPressed(SDLKey key)
{
return keyState[key] == wasP;
}
-bool input::wasReleased(Uint8 key)
+bool input::wasReleased(SDLKey key)
{
return keyState[key] == wasR;
}
bool mouseLeft();
bool mouseRight();
- bool isPressed(Uint8);
- bool isReleased(Uint8);
+ bool isPressed(SDLKey);
+ bool isReleased(SDLKey);
- bool wasPressed(Uint8);
- bool wasReleased(Uint8);
+ bool wasPressed(SDLKey);
+ bool wasReleased(SDLKey);
}
#endif // INPUT_H