summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/Src/EventHandler.h
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2009-01-04 21:07:22 +0000
committerShawn Hoffman <godisgovernment@gmail.com>2009-01-04 21:07:22 +0000
commit34cad180e8a2124beb0a795998cda4d45ff8fe4f (patch)
tree00f454bdb2000bcbd95aa15fed10005baf08073a /Source/Core/InputCommon/Src/EventHandler.h
parent96d6fc6e85f10fb5a5ac0a3f8d5c34c53669b4ec (diff)
add inputcommon and padsimpleEvnt to windows build. note: the plugin is disabled atm; it builds but isn't fit for general consumption. Also a bit of dolphin-style cleanup on inputcommon
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1768 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/InputCommon/Src/EventHandler.h')
-rw-r--r--Source/Core/InputCommon/Src/EventHandler.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/Core/InputCommon/Src/EventHandler.h b/Source/Core/InputCommon/Src/EventHandler.h
index a1f2b2374d..b5a21788d5 100644
--- a/Source/Core/InputCommon/Src/EventHandler.h
+++ b/Source/Core/InputCommon/Src/EventHandler.h
@@ -12,7 +12,8 @@ enum InputType
JoystickInput
};
-enum Modifiers {
+enum Modifiers
+{
UseAlt = 1,
UseShift = 2,
UseCtrl = 4
@@ -27,13 +28,14 @@ struct Keys
sf::Mouse::Button mouseButton;
};
-class EventHandler {
-
+class EventHandler
+{
private:
listenFuncPtr keys[sf::Key::Count][8];
listenFuncPtr mouse[sf::Mouse::Count];
listenFuncPtr joys[sf::Joy::Count];
std::queue<sf::Event> eventQueue;
+
public:
bool RegisterEventListener(listenFuncPtr func, Keys key);
bool RemoveEventListener(Keys key);