Moving input handling for Windows

View: New views
2 Messages — Rating Filter:   Alert me  

Moving input handling for Windows

by Kenneth Bull :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It might be a good idea to move input events from WIN_WindowProc to
WIN_PumpEvents to take advantage of the time stamp in MSG.  Passing
this information on to the application might allow for more precise
movement in an FPS for example.
_______________________________________________
SDL mailing list
SDL@...
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Re: Moving input handling for Windows

by Bob Pendleton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Nov 7, 2009 at 11:53 PM, Kenneth Bull <llubnek@...> wrote:
> It might be a good idea to move input events from WIN_WindowProc to
> WIN_PumpEvents to take advantage of the time stamp in MSG.  Passing
> this information on to the application might allow for more precise
> movement in an FPS for example.

Yeah, I would love to see timestamps in SDL events.

Having done way to much discrete event simulation I would also like to
see the SDL event queue implemented as a heap/priority_queue so that
events could be scheduled through the event queue. I wind up doing
that by hand in most of my code.

Bob Pendleton

> _______________________________________________
> SDL mailing list
> SDL@...
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>



--
+-----------------------------------------------------------
+ Bob Pendleton: writer and programmer
+ email: Bob@...
+ web: www.TheGrumpyProgrammer.com
_______________________________________________
SDL mailing list
SDL@...
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org