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.
| Summary: |
SDL_GetKeyState |
| Product: |
SDL
|
Reporter: |
John Funge <jfunge> |
| Component: |
*don't know* | Assignee: |
Ryan C. Gordon <icculus> |
| Status: |
RESOLVED
INVALID
|
QA Contact: |
Sam Lantinga <slouken> |
| Severity: |
normal
|
|
|
| Priority: |
P2
|
|
|
| Version: |
1.2.11 | |
|
| Hardware: |
PowerPC | |
|
| OS: |
Mac OS X 10.4 (Intel) | |
|
On MacOS X 10.4 (Intel) SDL_GetKeyState doesn't seem to correctly report the status of keys. For example, in the following code snippet, the assert never fires. Uint8* keys(SDL_GetKeyState(NULL)); if (keys[SDLK_ESCAPE]) { assert(false); } It seems that the problem is that the key presses never reach the application. In particular, they seem to show up in terminal window from which the application was started. The problem does not occur on the PPC version of any version of MaxOS X that I've tested (including 10.4), all Windows versions I've tested are also fine (including XP and W2K), as are all versions of Linux I've tested (including Fedora Core 4). If it helps, the code I'm using is available: svn co https://svn.sourceforge.net/svnroot/ai4games ai4games And compiles on MacOS X using SCons. There is also some support for XCode. Thanks. John.