| Summary: | right side of keyboard doesn't work | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Gregory Smith <wolfy> |
| Component: | events | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | critical | ||
| Priority: | P1 | ||
| Version: | HG 1.2 | ||
| Hardware: | PowerPC | ||
| OS: | Mac OS Classic | ||
|
Description
Gregory Smith
2007-07-11 06:45:31 UTC
Gregory, Were you working from the latest Subversion when you made this comment? http://bugzilla.libsdl.org/show_bug.cgi?id=431#c12 (If so, we only have to check back to that point for changes.) Also, do you know if you were using the macdsp or macrom video target when this failed? Thanks, --ryan. Also, just to be clear, you built SDL 1.2 from SVN from source on Mac OS 9 with MPW or CodeWarrior, and dropped the shared object into an existing application, right? The keyboard was broken at that point as well. "Works great" only referred to the gamma ramps. I updated SVN, built the shared library with CodeWarrior 10 (which only runs in Mac OS X), and dropped it in place of my SDL 1.2.11 shared library for testing in Mac OS 9. I believe the bug occurred with both macdsp and macrom, but I will have to try again to be sure. I retried with macdsp and macrom, neither work. I added a print statement to my event handler--it appears no keydown event is being generated. Another update: reverting src/video/maccommon/SDL_macevents.c to revision 2608 fixes the problem. I'm not sure I understand why, but it's some problem with change 3039. Oh jeez, I see the problem. Fixing it now.. I think this is fixed by revision 3286. I wasn't able to test it, can you try it out, and reopen the bug if it's not fixed? Thanks! No, this was my bug...KeyMap is an array of Uint32 elements, and I cast it to Uint8, so we end up only comparing the first quarter of the arrays for differences. Should actually be fixed in svn revision #3287 (but please check!). --ryan. Hah, I just tried to check in the same fix, byte for byte. Yes, this fixes it. :) |