mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 14:42:13 +00:00
attempted vs2008 compile fix
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3102 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
e3017a8fe4
commit
8b658df029
6 changed files with 2851 additions and 2803 deletions
|
@ -73,7 +73,7 @@ typedef struct tagRAWMOUSE {
|
|||
USHORT usButtonFlags;
|
||||
USHORT usButtonData;
|
||||
};
|
||||
} buttondata;
|
||||
};
|
||||
ULONG ulRawButtons;
|
||||
LONG lLastX;
|
||||
LONG lLastY;
|
||||
|
|
|
@ -1803,36 +1803,36 @@ void IN_RawInput_MouseRead(HANDLE in_device_handle)
|
|||
}
|
||||
|
||||
// buttons
|
||||
if (raw->data.mouse.buttondata.usButtonFlags & RI_MOUSE_BUTTON_1_DOWN)
|
||||
if (raw->data.mouse.usButtonFlags & RI_MOUSE_BUTTON_1_DOWN)
|
||||
Key_Event(K_MOUSE1, true);
|
||||
if (raw->data.mouse.buttondata.usButtonFlags & RI_MOUSE_BUTTON_1_UP)
|
||||
if (raw->data.mouse.usButtonFlags & RI_MOUSE_BUTTON_1_UP)
|
||||
Key_Event(K_MOUSE1, false);
|
||||
if (raw->data.mouse.buttondata.usButtonFlags & RI_MOUSE_BUTTON_2_DOWN)
|
||||
if (raw->data.mouse.usButtonFlags & RI_MOUSE_BUTTON_2_DOWN)
|
||||
Key_Event(K_MOUSE2, true);
|
||||
if (raw->data.mouse.buttondata.usButtonFlags & RI_MOUSE_BUTTON_2_UP)
|
||||
if (raw->data.mouse.usButtonFlags & RI_MOUSE_BUTTON_2_UP)
|
||||
Key_Event(K_MOUSE2, false);
|
||||
if (raw->data.mouse.buttondata.usButtonFlags & RI_MOUSE_BUTTON_3_DOWN)
|
||||
if (raw->data.mouse.usButtonFlags & RI_MOUSE_BUTTON_3_DOWN)
|
||||
Key_Event(K_MOUSE3, true);
|
||||
if (raw->data.mouse.buttondata.usButtonFlags & RI_MOUSE_BUTTON_3_UP)
|
||||
if (raw->data.mouse.usButtonFlags & RI_MOUSE_BUTTON_3_UP)
|
||||
Key_Event(K_MOUSE3, false);
|
||||
if (raw->data.mouse.buttondata.usButtonFlags & RI_MOUSE_BUTTON_4_DOWN)
|
||||
if (raw->data.mouse.usButtonFlags & RI_MOUSE_BUTTON_4_DOWN)
|
||||
Key_Event(K_MOUSE4, true);
|
||||
if (raw->data.mouse.buttondata.usButtonFlags & RI_MOUSE_BUTTON_4_UP)
|
||||
if (raw->data.mouse.usButtonFlags & RI_MOUSE_BUTTON_4_UP)
|
||||
Key_Event(K_MOUSE4, false);
|
||||
if (raw->data.mouse.buttondata.usButtonFlags & RI_MOUSE_BUTTON_5_DOWN)
|
||||
if (raw->data.mouse.usButtonFlags & RI_MOUSE_BUTTON_5_DOWN)
|
||||
Key_Event(K_MOUSE5, true);
|
||||
if (raw->data.mouse.buttondata.usButtonFlags & RI_MOUSE_BUTTON_5_UP)
|
||||
if (raw->data.mouse.usButtonFlags & RI_MOUSE_BUTTON_5_UP)
|
||||
Key_Event(K_MOUSE5, false);
|
||||
|
||||
// mouse wheel
|
||||
if (raw->data.mouse.buttondata.usButtonFlags & RI_MOUSE_WHEEL)
|
||||
if (raw->data.mouse.usButtonFlags & RI_MOUSE_WHEEL)
|
||||
{ // If the current message has a mouse_wheel message
|
||||
if ((SHORT)raw->data.mouse.buttondata.usButtonData > 0)
|
||||
if ((SHORT)raw->data.mouse.usButtonData > 0)
|
||||
{
|
||||
Key_Event(K_MWHEELUP, true);
|
||||
Key_Event(K_MWHEELUP, false);
|
||||
}
|
||||
if ((SHORT)raw->data.mouse.buttondata.usButtonData < 0)
|
||||
if ((SHORT)raw->data.mouse.usButtonData < 0)
|
||||
{
|
||||
Key_Event(K_MWHEELDOWN, true);
|
||||
Key_Event(K_MWHEELDOWN, false);
|
||||
|
|
2530
engine/d3d/vid_d3d.c
2530
engine/d3d/vid_d3d.c
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -37,14 +37,26 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#endif
|
||||
#ifndef MK_XBUTTON1
|
||||
#define MK_XBUTTON1 0x0020
|
||||
#endif
|
||||
#ifndef MK_XBUTTON2
|
||||
#define MK_XBUTTON2 0x0040
|
||||
#endif
|
||||
// copied from DarkPlaces in an attempt to grab more buttons
|
||||
#ifndef MK_XBUTTON3
|
||||
#define MK_XBUTTON3 0x0080
|
||||
#endif
|
||||
#ifndef MK_XBUTTON4
|
||||
#define MK_XBUTTON4 0x0100
|
||||
#endif
|
||||
#ifndef MK_XBUTTON5
|
||||
#define MK_XBUTTON5 0x0200
|
||||
#endif
|
||||
#ifndef MK_XBUTTON6
|
||||
#define MK_XBUTTON6 0x0400
|
||||
#endif
|
||||
#ifndef MK_XBUTTON7
|
||||
#define MK_XBUTTON7 0x0800
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef WM_INPUT
|
||||
#define WM_INPUT 255
|
||||
|
|
|
@ -51,14 +51,26 @@ extern int r_flushcache;
|
|||
#endif
|
||||
#ifndef MK_XBUTTON1
|
||||
#define MK_XBUTTON1 0x0020
|
||||
#endif
|
||||
#ifndef MK_XBUTTON2
|
||||
#define MK_XBUTTON2 0x0040
|
||||
#endif
|
||||
// copied from DarkPlaces in an attempt to grab more buttons
|
||||
#ifndef MK_XBUTTON3
|
||||
#define MK_XBUTTON3 0x0080
|
||||
#endif
|
||||
#ifndef MK_XBUTTON4
|
||||
#define MK_XBUTTON4 0x0100
|
||||
#endif
|
||||
#ifndef MK_XBUTTON5
|
||||
#define MK_XBUTTON5 0x0200
|
||||
#endif
|
||||
#ifndef MK_XBUTTON6
|
||||
#define MK_XBUTTON6 0x0400
|
||||
#endif
|
||||
#ifndef MK_XBUTTON7
|
||||
#define MK_XBUTTON7 0x0800
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef WM_INPUT
|
||||
#define WM_INPUT 255
|
||||
|
|
Loading…
Reference in a new issue