projects
/
physics.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
change to SDLKey type
[physics.git]
/
src
/
input
/
inputManager.cpp
diff --git
a/src/input/inputManager.cpp
b/src/input/inputManager.cpp
index
ebbd72e
..
3ecb477
100644
(file)
--- a/
src/input/inputManager.cpp
+++ b/
src/input/inputManager.cpp
@@
-93,20
+93,20
@@
bool input::mouseRight()
return state & SDL_BUTTON(3);
}
return state & SDL_BUTTON(3);
}
-bool input::isPressed(
Uint8
key)
+bool input::isPressed(
SDLKey
key)
{
return keyState[key] == isP || keyState[key] == wasP;
}
{
return keyState[key] == isP || keyState[key] == wasP;
}
-bool input::isReleased(
Uint8
key)
+bool input::isReleased(
SDLKey
key)
{
return keyState[key] == isR || keyState[key] == wasR;
}
{
return keyState[key] == isR || keyState[key] == wasR;
}
-bool input::wasPressed(
Uint8
key)
+bool input::wasPressed(
SDLKey
key)
{
return keyState[key] == wasP;
}
{
return keyState[key] == wasP;
}
-bool input::wasReleased(
Uint8
key)
+bool input::wasReleased(
SDLKey
key)
{
return keyState[key] == wasR;
}
{
return keyState[key] == wasR;
}