projects
/
physics.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changed src so the libpg headers are now used
[physics.git]
/
src
/
input
/
inputManager.h
diff --git
a/src/input/inputManager.h
b/src/input/inputManager.h
index
3e0e45d
..
6abc39f
100644
(file)
--- a/
src/input/inputManager.h
+++ b/
src/input/inputManager.h
@@
-18,9
+18,9
@@
#ifndef INPUT_H
#define INPUT_H
#ifndef INPUT_H
#define INPUT_H
-#include <SDL/SDL.h>
-#include "../Vector2.h"
+#include <pg/Vector2.h>
+#include <SDL/SDL.h>
/// ***** Header Methods *****
/// ***** Header Methods *****
@@
-33,11
+33,14
@@
namespace input
Vector2 mousePosition();
Vector2 mousePosition();
- bool isPressed(Uint8);
- bool isReleased(Uint8);
+ bool mouseLeft();
+ bool mouseRight();
+
+ bool isPressed(const SDLKey&);
+ bool isReleased(const SDLKey&);
- bool wasPressed(
Uint8
);
- bool wasReleased(
Uint8
);
+ bool wasPressed(
const SDLKey&
);
+ bool wasReleased(
const SDLKey&
);
}
#endif // INPUT_H
}
#endif // INPUT_H