Skip to content

Commit

Permalink
Windows: fixed DirectInput not working under Wine
Browse files Browse the repository at this point in the history
This reverts couple of changes from 234ac0a which were not relevant to original commit, but broke DirectInput driver on Wine, because these classes are not implemented.
  • Loading branch information
ivan-mogilko committed Feb 16, 2020
1 parent a41ba4e commit c69e7bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/win/wkeybd.c
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ static int key_dinput_init(void)
goto Error;

/* Create the keyboard device */
hr = IDirectInput_CreateDevice(key_dinput, &GUID_SysKeyboardEm2, &key_dinput_device, NULL);
hr = IDirectInput_CreateDevice(key_dinput, &GUID_SysKeyboard, &key_dinput_device, NULL);
if (FAILED(hr))
goto Error;

Expand Down
2 changes: 1 addition & 1 deletion src/win/wmouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ static int mouse_dinput_init(void)
goto Error;

/* Create the mouse device */
hr = IDirectInput_CreateDevice(mouse_dinput, &GUID_SysMouseEm2, &mouse_dinput_device, NULL);
hr = IDirectInput_CreateDevice(mouse_dinput, &GUID_SysMouse, &mouse_dinput_device, NULL);
if (FAILED(hr))
goto Error;

Expand Down

0 comments on commit c69e7bb

Please sign in to comment.