mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +00:00
call the IE init ans shutdown functions. still need to rework the rest of the
intput system to use it.
This commit is contained in:
parent
07a09e0812
commit
dd16a1c4d5
3 changed files with 11 additions and 0 deletions
|
@ -70,6 +70,7 @@ typedef struct {
|
|||
|
||||
void IE_Init (void);
|
||||
void IE_Init_Cvars (void);
|
||||
void IE_Shutdown (void);
|
||||
int IE_Send_Event (const IE_event_t *event);
|
||||
int IE_Add_Handler (int (*event_handler)(const IE_event_t*));
|
||||
void IE_Remove_Handler (int handle);
|
||||
|
|
|
@ -50,6 +50,7 @@
|
|||
|
||||
#include "QF/console.h"
|
||||
#include "QF/cvar.h"
|
||||
#include "QF/in_event.h"
|
||||
#include "QF/input.h"
|
||||
#include "QF/joystick.h"
|
||||
#include "QF/keys.h"
|
||||
|
@ -131,11 +132,14 @@ IN_Shutdown (void)
|
|||
|
||||
Con_Printf ("IN_Shutdown\n");
|
||||
IN_LL_Shutdown ();
|
||||
|
||||
IE_Shutdown ();
|
||||
}
|
||||
|
||||
void
|
||||
IN_Init (void)
|
||||
{
|
||||
IE_Init ();
|
||||
IN_LL_Init ();
|
||||
|
||||
JOY_Init ();
|
||||
|
@ -146,6 +150,7 @@ IN_Init (void)
|
|||
void
|
||||
IN_Init_Cvars (void)
|
||||
{
|
||||
IE_Init_Cvars ();
|
||||
JOY_Init_Cvars ();
|
||||
_windowed_mouse = Cvar_Get ("_windowed_mouse", "0", CVAR_ARCHIVE, NULL,
|
||||
"With this set to 1, quake will grab the mouse from X");
|
||||
|
|
|
@ -60,6 +60,11 @@ IE_Init_Cvars (void)
|
|||
{
|
||||
}
|
||||
|
||||
void
|
||||
IE_Shutdown (void)
|
||||
{
|
||||
}
|
||||
|
||||
int
|
||||
IE_Send_Event (const IE_event_t *event)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue