about summary refs log tree commit diff
path: root/src/engine/client/input.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/client/input.cpp')
-rw-r--r--src/engine/client/input.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/engine/client/input.cpp b/src/engine/client/input.cpp
index 9f546226..32e61bbb 100644
--- a/src/engine/client/input.cpp
+++ b/src/engine/client/input.cpp
@@ -31,7 +31,6 @@ CInput::CInput()
 {
 	mem_zero(m_aInputCount, sizeof(m_aInputCount));
 	mem_zero(m_aInputState, sizeof(m_aInputState));
-	mem_zero(m_Keys, sizeof(m_Keys));
 
 	m_InputCurrent = 0;
 	m_InputGrabbed = 0;
@@ -146,20 +145,11 @@ void CInput::Update()
 				// handle keys
 				case SDL_KEYDOWN:
 					AddEvent(Event.key.keysym.unicode, 0, 0); // ignore_convention
-                    if(Event.key.keysym.unicode != 0 && Event.key.keysym.unicode < 256) // ignore_convention
-                    {
-                        Key = Event.key.keysym.unicode;  // ignore_convention
-                        m_Keys[Event.key.keysym.sym] = Event.key.keysym.unicode; // ignore_convention
-                    }
-                    else
-                        Key = Event.key.keysym.sym;  // ignore_convention
+                    Key = Event.key.keysym.sym;  // ignore_convention
 					break;
 				case SDL_KEYUP:
 					Action = IInput::FLAG_RELEASE;
-					if(m_Keys[Event.key.keysym.sym] != 0) // ignore_convention
-                        Key = m_Keys[Event.key.keysym.sym]; // ignore_convention
-                    else
-                        Key = Event.key.keysym.sym; // ignore_convention
+					Key = Event.key.keysym.sym; // ignore_convention
 					break;
 
 				// handle mouse buttons