diff options
| author | relnev <relnev@5198baeb-e213-0410-be47-fc2ff85ca46f> | 2003-01-19 02:39:55 +0000 |
|---|---|---|
| committer | relnev <relnev@5198baeb-e213-0410-be47-fc2ff85ca46f> | 2003-01-19 02:39:55 +0000 |
| commit | 866995794baaa2a5f0f58662f2b4cccae9685de2 (patch) | |
| tree | 2030b312d2c215bed615125a191a594821362bd7 /Source/GameLoop.cpp | |
| parent | 1ad773e0debb15df816376cc762a2b5acbd91235 (diff) | |
| download | blackshades-866995794baaa2a5f0f58662f2b4cccae9685de2.tar.gz | |
forgot about you (only set keys that actually exist)
git-svn-id: svn://svn.icculus.org/blackshades/trunk@90 5198baeb-e213-0410-be47-fc2ff85ca46f
Diffstat (limited to 'Source/GameLoop.cpp')
| -rw-r--r-- | Source/GameLoop.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/GameLoop.cpp b/Source/GameLoop.cpp index 3f7fada..35bc4fe 100644 --- a/Source/GameLoop.cpp +++ b/Source/GameLoop.cpp @@ -323,10 +323,12 @@ static void DoSDLKey(Game *g, SDL_Event *event) index = mackey / 8; mask = 1 << (mackey % 8); - if (press) { - ourkeys[index] |= mask; - } else { - ourkeys[index] &= ~mask; + if (mackey) { + if (press) { + ourkeys[index] |= mask; + } else { + ourkeys[index] &= ~mask; + } } if (event->key.keysym.unicode && |
