summaryrefslogtreecommitdiff
path: root/apps/action.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/action.h')
-rw-r--r--apps/action.h48
1 files changed, 0 insertions, 48 deletions
diff --git a/apps/action.h b/apps/action.h
index 6e1278b33c..d88b9a51a8 100644
--- a/apps/action.h
+++ b/apps/action.h
@@ -379,54 +379,6 @@ enum {
379 LAST_ACTION_PLACEHOLDER, /* custom actions should be this + something */ 379 LAST_ACTION_PLACEHOLDER, /* custom actions should be this + something */
380}; 380};
381 381
382 /* act_cur holds action state during get_action() call */
383typedef struct
384{
385 int action;
386 int button;
387 int context;
388 int timeout;
389 const struct button_mapping *items;
390 const struct button_mapping* (*get_context_map)(int);
391 bool is_prebutton;
392} action_cur_t;
393
394/* act_last holds action state between get_action() calls */
395typedef struct
396{
397 int action;
398 long tick;
399 int button;
400 int context;
401 intptr_t data;
402
403#if defined(HAVE_BACKLIGHT)
404 unsigned int backlight_mask;
405 long bl_filter_tick;
406#endif
407
408#if !defined(HAS_BUTTON_HOLD)
409 long sl_filter_tick;
410 unsigned int softlock_mask;
411 int unlock_combo;
412 bool keys_locked;
413 bool screen_has_lock;
414
415#endif
416
417 bool repeated;
418 bool wait_for_release;
419
420#ifndef DISABLE_ACTION_REMAP
421 int key_remap;
422#endif
423
424#ifdef HAVE_TOUCHSCREEN
425 bool ts_short_press;
426 int ts_data;
427#endif
428} action_last_t;
429
430struct button_mapping { 382struct button_mapping {
431 int action_code; 383 int action_code;
432 int button_code; 384 int button_code;