shithub: choc

Download patch

ref: de520c468a33cf9b1913f04dce176fe689c8a95e
parent: dcb88e2760625df95e16b666cd1a00e4a6f879c0
author: Turo Lamminen <[email protected]>
date: Thu Sep 8 09:54:06 EDT 2022

video: Move I_HandleKeyboardEvent and I_HandleMouseEvent prototypes to i_input.h

--- a/src/i_input.h
+++ b/src/i_input.h
@@ -42,4 +42,8 @@
 // (if one is used).
 void I_StopTextInput(void);
 
+void I_HandleKeyboardEvent(SDL_Event *sdlevent);
+void I_HandleMouseEvent(SDL_Event *sdlevent);
+
+
 #endif
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -415,8 +415,6 @@
 
 void I_GetEvent(void)
 {
-    extern void I_HandleKeyboardEvent(SDL_Event *sdlevent);
-    extern void I_HandleMouseEvent(SDL_Event *sdlevent);
     SDL_Event sdlevent;
 
     SDL_PumpEvents();