From 67364cfe81cbe9cf9f71868572f327df9d72a076 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Banaan=20Ananas?= Date: Sun, 25 Mar 2012 17:55:05 +0000 Subject: [PATCH] Change DirectInput joystick acquisition method to be non exclusive. [bdam] --- src/osd/windows/input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osd/windows/input.c b/src/osd/windows/input.c index 9c3205fdc7e..c94d2c67cb5 100644 --- a/src/osd/windows/input.c +++ b/src/osd/windows/input.c @@ -1507,14 +1507,14 @@ static void dinput_mouse_poll(device_info *devinfo) static BOOL CALLBACK dinput_joystick_enum(LPCDIDEVICEINSTANCE instance, LPVOID ref) { - DWORD cooperative_level = DISCL_FOREGROUND | DISCL_EXCLUSIVE; + DWORD cooperative_level = DISCL_FOREGROUND | DISCL_NONEXCLUSIVE; int axisnum, axiscount, povnum, butnum; running_machine &machine = *(running_machine *)ref; device_info *devinfo; HRESULT result; if (win_window_list != NULL && win_has_menu(win_window_list)) { - cooperative_level = DISCL_BACKGROUND | DISCL_EXCLUSIVE; + cooperative_level = DISCL_BACKGROUND | DISCL_NONEXCLUSIVE; } // allocate and link in a new device devinfo = dinput_device_create(machine, &joystick_list, instance, &c_dfDIJoystick, NULL, cooperative_level);