mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 09:51:22 +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:
@@ -23,6 +23,7 @@
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
|
||||
@@ -80,4 +81,6 @@ template<class C> std::string to_string(C i)
|
||||
return s.str();
|
||||
}
|
||||
|
||||
inline void cstrncpy(char *dest, const char * const src, size_t n) { n--; strncpy(dest, src, n); dest[n] = 0; }
|
||||
inline void cstrncpy(char *dest, const std::string &src, size_t n) { n--; strncpy(dest, src.c_str(), n); dest[n] = 0; }
|
||||
#endif
|
||||
|
@@ -701,6 +701,7 @@ typedef enum
|
||||
LOCALE_KEYBINDINGMENU_CHANNELUP,
|
||||
LOCALE_KEYBINDINGMENU_HEAD,
|
||||
LOCALE_KEYBINDINGMENU_LASTCHANNEL,
|
||||
LOCALE_KEYBINDINGMENU_LONGKEYPRESS_DURATION,
|
||||
LOCALE_KEYBINDINGMENU_MISC,
|
||||
LOCALE_KEYBINDINGMENU_MODE_LEFT_RIGHT_KEY_TV,
|
||||
LOCALE_KEYBINDINGMENU_MODE_LEFT_RIGHT_KEY_TV_INFOBAR,
|
||||
@@ -985,6 +986,7 @@ typedef enum
|
||||
LOCALE_MENU_HINT_LEDS_STANDBY,
|
||||
LOCALE_MENU_HINT_LEDS_TV,
|
||||
LOCALE_MENU_HINT_LOAD,
|
||||
LOCALE_MENU_HINT_LONGKEYPRESS_DURATION,
|
||||
LOCALE_MENU_HINT_LUA,
|
||||
LOCALE_MENU_HINT_MAKE_HDLIST,
|
||||
LOCALE_MENU_HINT_MAKE_NEWLIST,
|
||||
|
@@ -701,6 +701,7 @@ const char * locale_real_names[] =
|
||||
"keybindingmenu.channelup",
|
||||
"keybindingmenu.head",
|
||||
"keybindingmenu.lastchannel",
|
||||
"keybindingmenu.longkeypress_duration",
|
||||
"keybindingmenu.misc",
|
||||
"keybindingmenu.mode_left_right_key_tv",
|
||||
"keybindingmenu.mode_left_right_key_tv_infobar",
|
||||
@@ -985,6 +986,7 @@ const char * locale_real_names[] =
|
||||
"menu.hint_leds_standby",
|
||||
"menu.hint_leds_tv",
|
||||
"menu.hint_load",
|
||||
"menu.hint_longkeypress_duration",
|
||||
"menu.hint_lua",
|
||||
"menu.hint_make_hdlist",
|
||||
"menu.hint_make_newlist",
|
||||
|
@@ -477,6 +477,8 @@ struct SNeutrinoSettings
|
||||
int channellist_show_channellogo;
|
||||
int repeat_blocker;
|
||||
int repeat_genericblocker;
|
||||
#define LONGKEYPRESS_OFF 499
|
||||
int longkeypress_duration;
|
||||
int remote_control_hardware;
|
||||
int audiochannel_up_down_enable;
|
||||
|
||||
|
Reference in New Issue
Block a user