mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-07 21:41:42 +00:00
0c4c90ac89
with RIDEV_NOLEGACY apparently prevents SetCursor() from doing anything. - Split mouse code off from i_input.cpp into i_mouse.cpp and added raw mouse handling. (WM_INPUT obsoleted most of DirectInput for XP.) - Fixed: Similar to the Win32 mouse, using the DirectInput mouse in windowed mode, if you alt-tabbed away and then clicked on the window's title bar, mouse input would be frozen until the mouse was ungrabbed again. SVN r1601 (trunk)
18 lines
1 KiB
C
18 lines
1 KiB
C
// Pointers to raw-input related functions. They were introduced with XP,
|
|
// so we can't use static linking with them.
|
|
#ifndef RIF
|
|
#define RIF(name,ret,args) \
|
|
typedef ret (WINAPI *name##Proto)args; \
|
|
extern name##Proto My##name;
|
|
#endif
|
|
|
|
RIF(DefRawInputProc, LRESULT, (PRAWINPUT *paRawInput, INT nInput, UINT cbSizeHeader))
|
|
RIF(GetRawInputBuffer, UINT, (PRAWINPUT pData, PUINT pcbSize, UINT cbSizeHeader))
|
|
RIF(GetRawInputData, UINT, (HRAWINPUT hRawInput, UINT uiCommand, LPVOID pData, PUINT pcbSize, UINT cbSizeHeader))
|
|
RIF(GetRawInputDeviceInfoA, UINT, (HANDLE hDevice, UINT uiCommand, LPVOID pData, PUINT pcbSize))
|
|
RIF(GetRawInputDeviceInfoW, UINT, (HANDLE hDevice, UINT uiCommand, LPVOID pData, PUINT pcbSize))
|
|
RIF(GetRawInputDeviceList, UINT, (PRAWINPUTDEVICELIST pRawInputDeviceList, PUINT puiNumDevices, UINT cbSize))
|
|
RIF(GetRegisteredRawInputDevices, UINT, (PRAWINPUTDEVICE pRawInputDevices, PUINT puiNumDevices, UINT cbSize))
|
|
RIF(RegisterRawInputDevices, BOOL, (PCRAWINPUTDEVICE pRawInputDevices, UINT uiNumDevices, UINT cbSize))
|
|
|
|
#undef RIF
|