diff --git a/src/sdl/i_input.cpp b/src/sdl/i_input.cpp index e7fc32ebf..78754d19e 100644 --- a/src/sdl/i_input.cpp +++ b/src/sdl/i_input.cpp @@ -460,3 +460,11 @@ void I_StartFrame () InitKeySymMap (); } } + +void I_GetAxes(float axes[NUM_JOYAXIS]) +{ + for (int i = 0; i < NUM_JOYAXIS; ++i) + { + axes[i] = 0; + } +} diff --git a/src/sdl/i_input.h b/src/sdl/i_input.h index 2551159ba..cfbf476d9 100644 --- a/src/sdl/i_input.h +++ b/src/sdl/i_input.h @@ -4,16 +4,7 @@ void I_PutInClipboard (const char *str); FString I_GetFromClipboard (bool use_primary_selection); -struct GUIDName -{ - GUID ID; - char *Name; -}; - -extern TArray JoystickNames; -extern char *JoyAxisNames[8]; - -extern void DI_EnumJoy (); +void I_GetAxes(float axes[NUM_JOYAXIS]); #endif diff --git a/zdoom.vcproj b/zdoom.vcproj index 18108eb30..b979a9bfa 100644 --- a/zdoom.vcproj +++ b/zdoom.vcproj @@ -91,7 +91,7 @@