Do default action in RUI mode
[platform/core/system/initrd-recovery.git] / src / librui / input-events.h
index 3d1e6b5..b07f996 100644 (file)
@@ -26,6 +26,7 @@ extern "C" {
 
 #define DISPATCH_TIMEOUT        (1 * 1000) /* One second */
 #define LONGPRESS_TIME          3 /* Seconds */
+#define TIMER_INTERVAL          1 /* Seconds */
 
 typedef enum {
        ACTION_NONE,
@@ -34,14 +35,16 @@ typedef enum {
        ACTION_CONFIRM,
        ACTION_HOME,
        ACTION_MENU,
-       ACTION_BACK
+       ACTION_BACK,
+       ACTION_TIMEOUT,
 } user_action;
 
 typedef enum {
        ACTION_TYPE_IDLE,
        ACTION_TYPE_BEGIN,
        ACTION_TYPE_END,
-       ACTION_TYPE_LONGPRESS
+       ACTION_TYPE_LONGPRESS,
+       ACTION_TYPE_TIMER,
 } user_action_type;
 
 typedef void (*input_callback)(user_action action,