+extern char hud_msg[64];
+extern int hud_new_msg;
+
+enum sched_action {
+ SACTION_NONE,
+ SACTION_ENTER_MENU,
+ SACTION_LOAD_STATE,
+ SACTION_SAVE_STATE,
+ SACTION_NEXT_SSLOT,
+ SACTION_PREV_SSLOT,
+ SACTION_TOGGLE_FSKIP,
+ SACTION_SWITCH_DISPMODE,
+ SACTION_FAST_FORWARD,
+ SACTION_SCREENSHOT,
+ SACTION_VOLUME_UP,
+ SACTION_VOLUME_DOWN,
+ SACTION_MINIMIZE,
+ SACTION_TOGGLE_FPS,
+ SACTION_TOGGLE_FULLSCREEN,
+ SACTION_GUN_TRIGGER = 16,
+ SACTION_GUN_A,
+ SACTION_GUN_B,
+ SACTION_GUN_TRIGGER2,
+};
+
+#define SACTION_GUN_MASK (0x0f << SACTION_GUN_TRIGGER)
+
+static inline void emu_set_action(enum sched_action action_)
+{
+ extern enum sched_action emu_action, emu_action_old;
+ extern int stop;
+
+ if (action_ == SACTION_NONE)
+ emu_action_old = 0;
+ else if (action_ != emu_action_old)
+ stop = 1;
+ emu_action = action_;
+}
+