| Summary: | Can't get key with GetKeyFromName() | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Miguel SARO <miguel_saro> |
| Component: | *don't know* | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED INVALID | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 2.0.5 | ||
| Hardware: | x86_64 | ||
| OS: | macOS 10.12 | ||
On Mac OS X the ALT key has a different name: SDL_cocoakeyboard.m: SDL_SetScancodeName(SDL_SCANCODE_LALT, "Left Option"); SDL_cocoakeyboard.m: SDL_SetScancodeName(SDL_SCANCODE_RALT, "Right Option"); |
Bonjour, I'm working on remapping keyboard in Hatari project. I'm with à Macbook Pro (fr). In Hatari to parse one character, its key is obtained with: int Keymap_GetKeyFromName(const char *name) { return SDL_GetKeyFromName(name); } Results of made tests with this are: name = Left Ctrl Key = 0x400000e0 name = Left Shift Key = 0x400000e1 name = Left Alt Key = 0x00000000 (Left Alt -> fail ?) Thomas (from Hatari) think this is propre to OSx. So he said I have to do a feed back. Regards Miguel