MAMEWorld >> Programming
View all threads Index   Flat Mode Flat  

bdam
MAME Fan
Reged: 04/13/07
Posts: 156
Send PM
DirectInput Question: Exclusive Access for Joysticks
03/06/12 03:45 PM


I've been working on implementing outputs for use in external programs such as MameHooker. My primary interest is in driving games with force feedback wheels.

Something I've come up against is that in src/osd/windows/input.c (lines 1510 and 1517) the joysticks are acquired exclusively. Keyboards and mice are acquired non-exclusively but joysticks are acquired exclusively. This is a problem for external programs that want to write to those same devices since to do so they need exclusive access as well.

So, is there a particular reason that MAME acquires joysticks with exclusive access? Changing it to non-exclusive is pretty simple and when I did so nothing catastrophic happened that I could tell.







Entire thread
Subject Posted by Posted on
* DirectInput Question: Exclusive Access for Joysticks bdam 03/06/12 03:45 PM

Extra information Permissions
Moderator:  Pi 
0 registered and 6 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2358