fixed keynum_t issue, it was declared as an extern variable (?!?) in the header,...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 28 Nov 2005 07:46:39 +0000 (07:46 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 28 Nov 2005 07:46:39 +0000 (07:46 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5848 d7cf8633-e32d-0410-b094-e92efae38249

keys.h
vid_glx.c
vid_sdl.c
vid_wgl.c

diff --git a/keys.h b/keys.h
index 51d0691..3736ac4 100644 (file)
--- a/keys.h
+++ b/keys.h
@@ -32,7 +32,7 @@
 //
 // these are the key numbers that should be passed to Key_Event
 //
-extern enum keynum_e
+typedef enum keynum_e
 {
        K_TAB                   = 9,
        K_ENTER                 = 13,
index 35187f2..cc503fd 100644 (file)
--- a/vid_glx.c
+++ b/vid_glx.c
@@ -316,7 +316,7 @@ static void IN_Activate (qboolean grab)
        }
 }
 
-static int buttonremap[18] =
+static keynum_t buttonremap[18] =
 {
        K_MOUSE1,
        K_MOUSE3,
index 9047dd3..2580104 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -251,7 +251,7 @@ static int Sys_EventFilter( SDL_Event *event )
 #endif
 }
 
-static int buttonremap[16] =
+static keynum_t buttonremap[16] =
 {
        K_MOUSE1,
        K_MOUSE3,
index 5b6f4b4..8c11800 100644 (file)
--- a/vid_wgl.c
+++ b/vid_wgl.c
@@ -469,7 +469,7 @@ void Sys_SendKeyEvents (void)
 
 LONG CDAudio_MessageHandler(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
 
-static int buttonremap[16] =
+static keynum_t buttonremap[16] =
 {
        K_MOUSE1,
        K_MOUSE2,