From a0eb83d60e3781650d785d48a062d1598ab0413e Mon Sep 17 00:00:00 2001 From: "Ben \"root\" Anderson" Date: Sat, 30 Nov 2013 00:00:09 -0600 Subject: [PATCH] Expose InputDrivers preference to other classes --- src/RageInput.cpp | 2 +- src/RageInput.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/RageInput.cpp b/src/RageInput.cpp index 9b3be236c3..e636e12894 100644 --- a/src/RageInput.cpp +++ b/src/RageInput.cpp @@ -9,7 +9,7 @@ RageInput* INPUTMAN = NULL; // globally accessable input device -static Preference g_sInputDrivers( "InputDrivers", "" ); // "" == DEFAULT_INPUT_DRIVER_LIST +Preference g_sInputDrivers( "InputDrivers", "" ); // "" == DEFAULT_INPUT_DRIVER_LIST namespace { diff --git a/src/RageInput.h b/src/RageInput.h index 949b89dde8..feda3611c6 100644 --- a/src/RageInput.h +++ b/src/RageInput.h @@ -4,6 +4,7 @@ #define RAGEINPUT_H #include "RageInputDevice.h" +#include "Preference.h" struct lua_State; class InputHandler; @@ -31,6 +32,8 @@ public: void PushSelf( lua_State *L ); }; +extern Preference g_sInputDrivers; + extern RageInput* INPUTMAN; // global and accessable from anywhere in our program #endif