MAMEWorld >> Programming
View all threads Index   Threaded Mode Threaded  

Pages: 1

bdam
MAME Fan
Reged: 04/13/07
Posts: 156
Send PM


DirectInput Question: Exclusive Access for Joysticks
#278304 - 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.


Pages: 1

MAMEWorld >> Programming
View all threads Index   Threaded Mode Threaded  

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