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 634 - windows event problem ! ( PeekMessage , TranslateMessage, DispatchMessage)
Summary: windows event problem ! ( PeekMessage , TranslateMessage, DispatchMessage)
Status: RESOLVED WONTFIX
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: 1.2.13
Hardware: x86 Windows (All)
: P2 minor
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords: target-1.2.14
Depends on:
Blocks:
 
Reported: 2008-10-04 00:10 UTC by dot
Modified: 2009-11-18 05:19 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dot 2008-10-04 00:10:10 UTC
//////////////////////////////////////////////////
source code filename
SDL_sysevents.c
SDL_dibevents.c
SDL_dx5events.c
//------------------------------------------
why not use TranslateMessage ? 
if use SDL_setenv("SDL_WINDOWID"); some windows event lost .
//------------------------------------------
  MSG  msg;
  while ( PeekMessage(&msg, NULL, 0, 0, PM_REMOVE) ) {
    if ( msg.message == WM_QUIT ) break;
=========>      TranslateMessage( &msg ); // why not use this..?? some windows event lost.
    DispatchMessage( &msg );
  }
/////////////////////////////////////////////////////
Comment 1 Ryan C. Gordon 2009-09-13 16:33:22 UTC
Tagging this bug with "target-1.2.14" so we can try to resolve it for SDL 1.2.14.

Please note that we may choose to resolve it as WONTFIX. This tag is largely so we have a comprehensive wishlist of bugs to examine for 1.2.14 (and so we can close bugs that we'll never fix, rather than have them live forever in Bugzilla).

--ryan.
Comment 2 Sam Lantinga 2009-09-21 03:37:38 UTC
SDL does it's own key event translation.  What events are you losing?
Comment 3 Ryan C. Gordon 2009-09-27 22:30:29 UTC
Taking bug.

--ryan.
Comment 4 Sam Lantinga 2009-09-27 23:53:05 UTC
Taking it back, since I'm looking at the code now.
Comment 5 dot 2009-10-04 06:03:24 UTC
like IME event
Comment 6 Sam Lantinga 2009-10-10 00:30:17 UTC
This is fixed for release, thanks!
Comment 7 Sam Lantinga 2009-11-16 21:02:18 UTC
This caused bug 865 and bug 882, so the change has been reverted in revision 5262.
Comment 8 Sam Lantinga 2009-11-16 21:03:24 UTC
If you have a fix that doesn't reopen those bugs, please feel free to submit it.  For now though, I'm marking this WONTFIX.

Do you have similar issues in SDL 1.3?
Comment 9 dot 2009-11-18 05:19:09 UTC
(In reply to comment #8)
> If you have a fix that doesn't reopen those bugs, please feel free to submit
> it.  For now though, I'm marking this WONTFIX.
> 
> Do you have similar issues in SDL 1.3?

no... just one