View unanswered posts | View active topics It is currently Sat Apr 20, 2019 2:25 am



This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
RawInput and older windows OS versions 
Author Message
Reply with quote
Post RawInput and older windows OS versions
It's possible to have an app detect the OS version and fall back to DirectInput if RawInput is not available. Check out the 2004-04-22 entry on Jake Stookey's site...

http://jstookey.com/arcade/rawmouse/


Wed Apr 01, 2009 5:09 am
Reply with quote
Post Re: RawInput and older windows OS versions
krick wrote:
It's possible to have an app detect the OS version and fall back to DirectInput if RawInput is not available. Check out the 2004-04-22 entry on Jake Stookey's site...

http://jstookey.com/arcade/rawmouse/


I tried that for XInput. MinGW creates code that crashes inside msvcrt!memcpy() when you call the function pointer returned from GetProcAddress(LoadLibrary("xinput1_3.dll"), "XInputGetState");

Only happens when compiled into bsnes too, maybe some stack memory corruption? Who knows, I otherwise have no problems with any code. It's definitely the pXInputGetState() call that causes the crash though.

And that was just one function. Doing that for RawInput would require hooking at least a half-dozen.

If people need Win2k support, I can make a binary that only uses DirectInput.


Wed Apr 01, 2009 6:24 am
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software.