mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-03 10:13:11 +00:00
(MSVC 2003) Buildfixes
This commit is contained in:
parent
b622e60e45
commit
81e76ca5e7
@ -25,6 +25,10 @@
|
|||||||
#define WM_MOUSEHWHEEL 0x20e
|
#define WM_MOUSEHWHEEL 0x20e
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef WM_MOUSEWHEEL
|
||||||
|
#define WM_MOUSEWHEEL 0x020A
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <dinput.h>
|
#include <dinput.h>
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -635,19 +639,15 @@ bool dinput_handle_message(void *dinput, UINT message, WPARAM wParam, LPARAM lPa
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
case WM_DEVICECHANGE:
|
case WM_DEVICECHANGE:
|
||||||
{
|
|
||||||
if (di->joypad)
|
if (di->joypad)
|
||||||
di->joypad->destroy();
|
di->joypad->destroy();
|
||||||
di->joypad = input_joypad_init_driver(settings->input.joypad_driver, di);
|
di->joypad = input_joypad_init_driver(settings->input.joypad_driver, di);
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
case WM_MOUSEWHEEL:
|
case WM_MOUSEWHEEL:
|
||||||
{
|
|
||||||
if (((short) HIWORD(wParam))/120 > 0)
|
if (((short) HIWORD(wParam))/120 > 0)
|
||||||
di->mouse_wu = true;
|
di->mouse_wu = true;
|
||||||
if (((short) HIWORD(wParam))/120 < 0)
|
if (((short) HIWORD(wParam))/120 < 0)
|
||||||
di->mouse_wd = true;
|
di->mouse_wd = true;
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case WM_MOUSEHWHEEL:
|
case WM_MOUSEHWHEEL:
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user