mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
driver/rcinput: implement long key press support (but no rcsim/yWeb support at this time)
driver/rcinput: drop unused gettimeofday code
This commit is contained in:
@@ -119,6 +119,7 @@ int CKeyChooserItem::exec(CMenuTarget* parent, const std::string &)
|
||||
paint();
|
||||
|
||||
g_RCInput->clearRCMsg();
|
||||
g_RCInput->setLongPressAny(true);
|
||||
|
||||
timeoutEnd = CRCInput::calcTimeoutEnd(g_settings.timing[SNeutrinoSettings::TIMING_MENU] == 0 ? 0xFFFF : g_settings.timing[SNeutrinoSettings
|
||||
::TIMING_MENU]);
|
||||
@@ -138,6 +139,7 @@ int CKeyChooserItem::exec(CMenuTarget* parent, const std::string &)
|
||||
goto get_Message;
|
||||
}
|
||||
|
||||
g_RCInput->setLongPressAny(false);
|
||||
hide();
|
||||
return res;
|
||||
}
|
||||
|
Reference in New Issue
Block a user