From dd16a1c4d546a3c80c8a5b295b8a345b2215a537 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 14 Aug 2001 00:03:03 +0000 Subject: [PATCH] call the IE init ans shutdown functions. still need to rework the rest of the intput system to use it. --- include/QF/in_event.h | 1 + libs/video/targets/in_common.c | 5 +++++ libs/video/targets/in_event.c | 5 +++++ 3 files changed, 11 insertions(+) diff --git a/include/QF/in_event.h b/include/QF/in_event.h index 234edec00..e2f85ea62 100644 --- a/include/QF/in_event.h +++ b/include/QF/in_event.h @@ -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); diff --git a/libs/video/targets/in_common.c b/libs/video/targets/in_common.c index 6c77d342a..5572cfdd0 100644 --- a/libs/video/targets/in_common.c +++ b/libs/video/targets/in_common.c @@ -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"); diff --git a/libs/video/targets/in_event.c b/libs/video/targets/in_event.c index 2936dce23..8e44cf4b5 100644 --- a/libs/video/targets/in_event.c +++ b/libs/video/targets/in_event.c @@ -60,6 +60,11 @@ IE_Init_Cvars (void) { } +void +IE_Shutdown (void) +{ +} + int IE_Send_Event (const IE_event_t *event) {