about summary refs log tree commit diff
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2010-10-29 23:01:50 +0200
committeroy <Tom_Adams@web.de>2010-10-29 23:01:50 +0200
commit9490b6f28deadaac1f88b9f2256e7af7458a672f (patch)
tree051acb533930958588b17db2bc57c0e60001b689
parent523c15e0e7602fcfc5ab6f24c4eb0bfd97d93e4f (diff)
downloadzcatch-9490b6f28deadaac1f88b9f2256e7af7458a672f.tar.gz
zcatch-9490b6f28deadaac1f88b9f2256e7af7458a672f.zip
fixed key handling for unicodes > 255
-rw-r--r--src/engine/client/input.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine/client/input.cpp b/src/engine/client/input.cpp
index ff41550f..0edfaf1e 100644
--- a/src/engine/client/input.cpp
+++ b/src/engine/client/input.cpp
@@ -150,7 +150,8 @@ void CInput::Update()
 			{
 				// handle keys
 				case SDL_KEYDOWN:
-					if(Event.key.keysym.unicode < 255)	// ignore_convention
+					// skip private use area of the BMP(contains the unicodes for keyboard function keys on MacOS)
+					if(Event.key.keysym.unicode < 0xE000 || Event.key.keysym.unicode > 0xF8FF)	// ignore_convention
 						AddEvent(Event.key.keysym.unicode, 0, 0); // ignore_convention
                     Key = Event.key.keysym.sym;  // ignore_convention
 					break;