X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Finput%2FinputManager.cpp;h=3ecb477866776500da716639413053c3b178a70e;hb=d6ce2baff0c3bfe8dce98d9b9325f84add6a2e72;hp=ebbd72e67071a804a7690bccd4dd7fd4f1ec7a14;hpb=7ffb6c2da6f41929a6f8043d2127f28122864110;p=physics.git diff --git a/src/input/inputManager.cpp b/src/input/inputManager.cpp index ebbd72e..3ecb477 100644 --- a/src/input/inputManager.cpp +++ b/src/input/inputManager.cpp @@ -93,20 +93,20 @@ bool input::mouseRight() 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; }