We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 685

Summary: Keyboard keys
Product: SDL Reporter: Eric Miranda <microbiu>
Component: *don't know*Assignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: simos.bugzilla
Version: HG 2.0   
Hardware: x86   
OS: Other   

Description Eric Miranda 2009-01-20 02:22:51 UTC
Hi, 

In file:

+++ include/SDL_keysym.h        (working copy)
@@ -242,7 +242,17 @@
     SDLK_KBDILLUMDOWN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KBDILLUMDOWN),
     SDLK_KBDILLUMUP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KBDILLUMUP),
     SDLK_EJECT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_EJECT),
-    SDLK_SLEEP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SLEEP)
+    SDLK_SLEEP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SLEEP),
+    SDLK_EQUALS             = 61,
+    SDLK_LEFTBRACKET        = 91,
+    SDLK_RIGHTBRACKET       = 93,
+    SDLK_SEMICOLON          = 59,
+    SDLK_BACKSLASH          = 92,
+    SDLK_COMMA              = 44,
+    SDLK_PERIOD             = 46,
+    SDLK_SLASH              = 47,
+    SDLK_LMETA              = 310,
+    SDLK_LAST
 };

Some keys "definitions" aren´t present.

I did this (ugly... sorry, i´m not a developer) patch in order to compile some programs.

tnx!
Comment 1 Sam Lantinga 2009-02-16 22:02:45 UTC
What programs were you trying to build that needed this fix?

Thanks!
Comment 2 Sam Lantinga 2009-12-15 17:08:00 UTC
The missing keysyms have been added to SDL_keysym.h.  Thanks!