mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-11 15:38:12 +00:00
Fix mingw
This commit is contained in:
parent
9fd279a974
commit
dccb3f4aab
@ -17,6 +17,7 @@
|
|||||||
#define ROLL 2
|
#define ROLL 2
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
#include <windows.h>
|
||||||
#else
|
#else
|
||||||
typedef struct point_s{
|
typedef struct point_s{
|
||||||
int x;
|
int x;
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
#include "keydefs.h"
|
#include "keydefs.h"
|
||||||
cvar_t *sensitivity;
|
cvar_t *sensitivity;
|
||||||
cvar_t *in_joystick;
|
cvar_t *in_joystick;
|
||||||
#define DLLEXPORT
|
|
||||||
#define PITCH 0
|
#define PITCH 0
|
||||||
#define YAW 1
|
#define YAW 1
|
||||||
#define ROLL 2
|
#define ROLL 2
|
||||||
@ -208,7 +207,7 @@ void IN_Move( float frametime, usercmd_t *cmd )
|
|||||||
ac_movecount = 0;
|
ac_movecount = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" void IN_MouseEvent( int mstate )
|
extern "C" void DLLEXPORT IN_MouseEvent( int mstate )
|
||||||
{
|
{
|
||||||
static int mouse_oldbuttonstate;
|
static int mouse_oldbuttonstate;
|
||||||
// perform button actions
|
// perform button actions
|
||||||
@ -230,22 +229,22 @@ extern "C" void IN_MouseEvent( int mstate )
|
|||||||
|
|
||||||
// Stubs
|
// Stubs
|
||||||
|
|
||||||
extern "C" void IN_ClearStates ( void )
|
extern "C" void DLLEXPORT IN_ClearStates ( void )
|
||||||
{
|
{
|
||||||
//gEngfuncs.Con_Printf("IN_ClearStates\n");
|
//gEngfuncs.Con_Printf("IN_ClearStates\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" void IN_ActivateMouse ( void )
|
extern "C" void DLLEXPORT IN_ActivateMouse ( void )
|
||||||
{
|
{
|
||||||
//gEngfuncs.Con_Printf("IN_ActivateMouse\n");
|
//gEngfuncs.Con_Printf("IN_ActivateMouse\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" void IN_DeactivateMouse ( void )
|
extern "C" void DLLEXPORT IN_DeactivateMouse ( void )
|
||||||
{
|
{
|
||||||
//gEngfuncs.Con_Printf("IN_DeactivateMouse\n");
|
//gEngfuncs.Con_Printf("IN_DeactivateMouse\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" void IN_Accumulate ( void )
|
extern "C" void DLLEXPORT IN_Accumulate ( void )
|
||||||
{
|
{
|
||||||
//gEngfuncs.Con_Printf("IN_Accumulate\n");
|
//gEngfuncs.Con_Printf("IN_Accumulate\n");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user