[RageInput] Added "No input devices were loaded." string to languages.

[RageInputDevice] Added localized names for InputDeviceState.
This commit is contained in:
AJ Kelly
2011-08-18 19:19:03 -05:00
parent 57d5a3a0b3
commit 66a11ed08f
4 changed files with 23 additions and 5 deletions
+3 -1
View File
@@ -5,6 +5,7 @@
#include "Foreach.h"
#include "Preference.h"
#include "LuaManager.h"
#include "LocalizedString.h"
RageInput* INPUTMAN = NULL; // globally accessable input device
@@ -48,6 +49,7 @@ RageInput::~RageInput()
LUA->UnsetGlobal( "INPUTMAN" );
}
static LocalizedString NO_INPUT_DEVICES_LOADED ( "RageInput", "No input devices were loaded." );
void RageInput::LoadDrivers()
{
for( unsigned i = 0; i < m_InputHandlers.size(); ++i )
@@ -64,7 +66,7 @@ void RageInput::LoadDrivers()
// If no input devices are loaded, the user won't be able to input anything.
if( apDevices.size() == 0 )
LOG->Warn( "No input devices were loaded." );
LOG->Warn( NO_INPUT_DEVICES_LOADED );
}
void RageInput::Update()