How can I get the WM_INPUT event?

BlitzMax Forums/BlitzMax Programming/How can I get the WM_INPUT event?

sswift(Posted 2009) [#1]
I need to know how to do this because pointer ballistics are making my game unplayable on systems where people have enabled it.

Here is information on the WM_INPUT event as it pertains to the mouse:
http://msdn.microsoft.com/en-us/library/bb206183%28VS.85%29.aspx

I found this code for getitng events in BlitzMax but the most recent example at the bottom no longer works:
http://www.blitzbasic.com/Community/posts.php?topic=50175#558050

Also, I'd rather not have a window sitting on the screen or on the start menu bar, which I suspect doing this will result in. And I'm also concerned that doing this will somehow screw up getting events the normal way, though I pretty sure it won't.


Blueapples(Posted 2009) [#2]
What engine are you using? I kind of doubt that a custom message pump will work with any engine since they are usually going to have their own message pump. Trying to get a message in two loops won't be predicable and multiple winprocs just doesn't work.


sswift(Posted 2009) [#3]
Multiple winprocs is perfectly fine. Also, I got this working already. See the thread on code "you might find useful."