use DeviceInputToChar

This commit is contained in:
Glenn Maynard
2006-06-15 03:35:54 +00:00
parent 825d59ec44
commit 0a5256bb03
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -519,7 +519,7 @@ void ScreenNameEntryTraditional::Input( const InputEventPlus &input )
}
else
{
wchar_t ch = INPUTMAN->DeviceButtonToChar(input.DeviceI.button,true);
wchar_t ch = INPUTMAN->DeviceInputToChar(input.DeviceI,true);
MakeUpper( &ch, 1 );
c = ch;
}
+1 -1
View File
@@ -120,7 +120,7 @@ void ScreenNetSelectBase::Input( const InputEventPlus &input )
break;
default:
wchar_t c;
c = INPUTMAN->DeviceButtonToChar(input.DeviceI.button,true);
c = INPUTMAN->DeviceInputToChar(input.DeviceI, true);
if( (c >= ' ') && (!bHoldingCtrl) )
{
+1 -1
View File
@@ -130,7 +130,7 @@ void ScreenNetSelectMusic::Input( const InputEventPlus &input )
INPUTFILTER->IsBeingPressed(DeviceInput(DEVICE_KEYBOARD, KEY_RCTRL)) ||
(!NSMAN->useSMserver); //If we are disconnected, assume no chatting
wchar_t c = INPUTMAN->DeviceButtonToChar(input.DeviceI.button,true);
wchar_t c = INPUTMAN->DeviceInputToChar(input.DeviceI,true);
MakeUpper( &c, 1 );
if ( bHoldingCtrl && ( c >= 'A' ) && ( c <= 'Z' ) )
+1 -1
View File
@@ -183,7 +183,7 @@ void ScreenTextEntry::Input( const InputEventPlus &input )
}
else if( input.type == IET_FIRST_PRESS )
{
wchar_t c = INPUTMAN->DeviceButtonToChar(input.DeviceI.button,true);
wchar_t c = INPUTMAN->DeviceInputToChar(input.DeviceI,true);
if( c >= ' ' )
{
TryAppendToAnswer( WStringToRString(wstring()+c) );