mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 18:01:13 +02:00
driver/rcinput: let getUnicodeValue() return const char *
This commit is contained in:
@@ -218,7 +218,7 @@ int CExtendedInput::exec( CMenuTarget* parent, const std::string & )
|
||||
CVFD::getInstance()->showMenuText(1, valueString->c_str(), selectedChar+1);
|
||||
}
|
||||
}
|
||||
else if ( (CRCInput::getUnicodeValue(msg) != -1) || (msg == CRCInput::RC_red) || (msg == CRCInput::RC_green) || (msg == CRCInput::RC_blue) || (msg == CRCInput::RC_yellow)
|
||||
else if ( (!*CRCInput::getUnicodeValue(msg)) || (msg == CRCInput::RC_red) || (msg == CRCInput::RC_green) || (msg == CRCInput::RC_blue) || (msg == CRCInput::RC_yellow)
|
||||
|| (msg == CRCInput::RC_up) || (msg == CRCInput::RC_down))
|
||||
{
|
||||
inputFields[selectedChar]->keyPressed(msg);
|
||||
@@ -377,12 +377,12 @@ int CExtendedInput_Item_Char::getCharID( char ch )
|
||||
|
||||
void CExtendedInput_Item_Char::keyPressed(const int key)
|
||||
{
|
||||
int value = CRCInput::getUnicodeValue(key);
|
||||
if (value != -1)
|
||||
const char *value = CRCInput::getUnicodeValue(key);
|
||||
if (*value)
|
||||
{
|
||||
if (isAllowedChar((char)value))
|
||||
if (isAllowedChar(*value))
|
||||
{
|
||||
*data = (char)value;
|
||||
*data = *value;
|
||||
g_RCInput->postMsg( CRCInput::RC_right, 0 );
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user