static bool touch_pressed = false;
static int skip_lcd_off = false;
static int skip_combination = false;
-static int bezel_wakeup = true;
static int booting_check = true;
static inline int current_state_in_on(void)
if (ret < 0)
break;
- if (current == SYSCOMMON_DEVICED_DISPLAY_STATE_OFF && bezel_wakeup) {
- switch_on_lcd(DEVICED_EVENT_INPUT_BEZEL);
+ if (current == SYSCOMMON_DEVICED_DISPLAY_STATE_OFF) {
+ switch_on_lcd(DEVICED_EVENT_INPUT);
ignore = false;
} else if (current != SYSCOMMON_DEVICED_DISPLAY_STATE_OFF)
ignore = false;
return 0;
}
-static int bezel_wakeup_cb(void *data)
-{
- bezel_wakeup = (int)((intptr_t)data);
-
- return 0;
-}
-
/*
* Default capability
* powerkey := LCDON | LCDOFF | POWEROFF
display_add_actor(&display_menukey_actor);
syscommon_notifier_subscribe_notify(DEVICED_NOTIFIER_DELAYED_INIT, delayed_init_done);
- syscommon_notifier_subscribe_notify(DEVICED_NOTIFIER_BEZEL_WAKEUP, bezel_wakeup_cb);
input_register_event_callback(check_key_filter, NULL, NULL, NULL);
}