add dinput curspr hack
This commit is contained in:
parent
2ee62a4674
commit
2e6dcb2906
3 changed files with 5 additions and 1 deletions
1
inc/dd.h
1
inc/dd.h
|
@ -141,6 +141,7 @@ typedef struct CNCDDRAW
|
|||
HCURSOR old_cursor;
|
||||
int show_cursor_count;
|
||||
BOOL fpupreserve;
|
||||
BOOL dinput_show_cursor;
|
||||
BOOL allow_wmactivate;
|
||||
int d3d9_adapter;
|
||||
BOOL opengl_core;
|
||||
|
|
|
@ -49,6 +49,7 @@ void cfg_load()
|
|||
g_ddraw->d3d9on12 = cfg_get_bool("d3d9on12", FALSE);
|
||||
g_ddraw->resolutions = cfg_get_int("resolutions", RESLIST_NORMAL);
|
||||
g_ddraw->fpupreserve = cfg_get_bool("fpupreserve", TRUE);
|
||||
g_ddraw->dinput_show_cursor = cfg_get_bool("dinput_show_cursor", FALSE);
|
||||
g_ddraw->allow_wmactivate = cfg_get_bool("allow_wmactivate", FALSE);
|
||||
g_ddraw->d3d9_adapter = cfg_get_int("d3d9_adapter", 0);
|
||||
g_ddraw->guard_lines = cfg_get_int("guard_lines", 200);
|
||||
|
@ -382,6 +383,7 @@ static void cfg_create_ini()
|
|||
"rgb555=false\n"
|
||||
"hook_peekmessage=false\n"
|
||||
"fpupreserve=true\n"
|
||||
"dinput_show_cursor=false\n"
|
||||
"\n"
|
||||
"\n"
|
||||
"\n"
|
||||
|
@ -1054,6 +1056,7 @@ static void cfg_create_ini()
|
|||
"\n"
|
||||
"; RollerCoaster Tycoon\n"
|
||||
"[rct]\n"
|
||||
"dinput_show_cursor=true\n"
|
||||
"singlecpu=false\n"
|
||||
"maxfps=0\n"
|
||||
"\n"
|
||||
|
|
|
@ -40,7 +40,7 @@ static HRESULT WINAPI fake_did_SetCooperativeLevel(IDirectInputDeviceA* This, HW
|
|||
{
|
||||
TRACE("DirectInput SetCooperativeLevel(This=%p, hwnd=%p, dwFlags=0x%08X)\n", This, hwnd, dwFlags);
|
||||
|
||||
if (This == g_mouse_device && g_ddraw && (dwFlags & DISCL_EXCLUSIVE))
|
||||
if (This == g_mouse_device && g_ddraw && (dwFlags & DISCL_EXCLUSIVE) && !g_ddraw->dinput_show_cursor)
|
||||
{
|
||||
if (g_mouse_locked || g_ddraw->devmode)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue