From 72ee43e9470c6fdbc6ed7ff92b85dfa5062c5762 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 6 Jan 2015 18:51:37 +0000 Subject: Added separate event handlers for mouse button clicks and mouse wheel movement. --- src/client/key.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/client/key.h') diff --git a/src/client/key.h b/src/client/key.h index 3d97dd1..2c25609 100644 --- a/src/client/key.h +++ b/src/client/key.h @@ -7,7 +7,7 @@ #ifndef __INCLUDED_CLIENT_KEY_H__ #define __INCLUDED_CLIENT_KEY_H__ -#include "SDL/SDL.h" +#include "SDL2/SDL.h" #include @@ -28,7 +28,7 @@ class Key { public: /// define a new key - Key(const char *name, int keysym, char ascii = 0); + Key(const unsigned int scancode, const char *name, const char ascii = 0); ~Key(); /// key modifiers @@ -74,8 +74,8 @@ public: return key_ascii; } - inline int sym() const { - return key_sym; + inline unsigned int scancode() const { + return key_scancode; } float key_pressed; @@ -84,7 +84,7 @@ public: private: std::string key_name; - int key_sym; + unsigned int key_scancode; char key_ascii; Action *key_action; -- cgit v1.2.3