- added a CVAR to disable raw input in case it causes problems (like apparently on Wine.)

SVN r2118 (trunk)
This commit is contained in:
Christoph Oelckers 2010-01-18 20:55:49 +00:00
parent 16c638a598
commit d547e89548

View file

@ -101,6 +101,7 @@
#include "cmdlib.h"
#include "d_event.h"
#include "v_text.h"
#include "version.h"
// Prototypes and declarations.
#include "rawinput.h"
@ -159,6 +160,11 @@ int SessionState = 0;
CVAR (Bool, k_allowfullscreentoggle, true, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
CUSTOM_CVAR(Bool, norawinput, false, CVAR_ARCHIVE|CVAR_GLOBALCONFIG|CVAR_NOINITCALL)
{
Printf("This won't take effect until "GAMENAME" is restarted.\n");
}
extern int chatmodeon;
static void I_CheckGUICapture ()
@ -592,7 +598,7 @@ bool I_InitInput (void *hwnd)
g_pdi = NULL;
g_pdi3 = NULL;
FindRawInputFunctions();
if (!norawinput) FindRawInputFunctions();
// Try for DirectInput 8 first, then DirectInput 3 for NT 4's benefit.
DInputDLL = LoadLibrary("dinput8.dll");