First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 76448
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Games <games@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Jon Daniel <forcemstr@t-online.de>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
1.2.7-keyrepeat.patch patch to fix keyrepeat issues for SDL-1.2.7 patch Jon Daniel 2005-01-02 14:35 0000 403 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 76448 depends on: Show dependency tree
Bug 76448 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-01-02 14:31 0000
If you switch keys very fast and hold the last one it
doesn't get repeated because the key release of the first key
occured after the key press of the second key.
Unfortunatly the key release of the first key sets
SDL_KeyRepeat.timestamp = 0; causing the the second key not to repeat.

This should be always reproducable. I've only checked this on x86-64
X11.

To fix this I just added another condition to make sure the sym of the
released key matches SDL_KeyRepeat.evt.key.keysym.sym.

Reproducible: Always
Steps to Reproduce:
1. Get and simple SDL framework or test application.
2. Call SDL_EnableKeyRepeat( SDL_DEFAULT_REPEAT_DELAY,     SDL_DEFAULT_REPEAT_INTERVAL ); after init
3. Run the SDL application press a key and hold it
4. switch to another key very fast and release the first one
5. hold the second key

Actual Results:  
The second key won't repeat!

Expected Results:  
The second key should repeat!

------- Comment #1 From Jon Daniel 2005-01-02 14:35:24 0000 -------
Created an attachment (id=47400) [edit]
patch to fix keyrepeat issues for SDL-1.2.7

Fix for SDL-1.2.7 keyrepeat issues
Other versions are very similar to fix

------- Comment #2 From SpanKY 2005-01-02 18:18:37 0000 -------
added patch from upstream cvs to 1.2.8 and 1.2.7-r3

First Last Prev Next    No search results available      Search page      Enter new bug