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:
Bill Currie 2001-08-14 00:03:03 +00:00
parent 07a09e0812
commit dd16a1c4d5
3 changed files with 11 additions and 0 deletions

View file

@ -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);

View file

@ -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");

View file

@ -60,6 +60,11 @@ IE_Init_Cvars (void)
{
}
void
IE_Shutdown (void)
{
}
int
IE_Send_Event (const IE_event_t *event)
{