Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Several updates to the input system (see ChangeLog)
- Loading branch information
1 parent
092a720
commit 243d234
Showing
27 changed files
with
1,253 additions
and
1,130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,46 @@ | ||
#ifndef LIBFSEMU_ACTIONS_H | ||
#define LIBFSEMU_ACTIONS_H | ||
|
||
#define FS_EMU_ACTION_TAUNT 0xc001 | ||
#define FS_EMU_ACTION_SCREENSHOT 0xc002 | ||
#define FS_EMU_ACTION_PAUSE 0xc003 | ||
#define FS_EMU_ACTION_MENU_ALT 0xc004 | ||
#define FS_EMU_ACTION_LOCAL 0x8000 | ||
#define FS_EMU_ACTION_LOCAL_LIBFSEMU 0xc000 | ||
|
||
enum { | ||
FS_EMU_ACTION_FIRST = FS_EMU_ACTION_LOCAL_LIBFSEMU, | ||
|
||
FS_EMU_ACTION_FULLSCREEN, | ||
FS_EMU_ACTION_GRAB_INPUT, | ||
FS_EMU_ACTION_MENU_ALT, | ||
FS_EMU_ACTION_PAUSE, | ||
FS_EMU_ACTION_QUIT, | ||
FS_EMU_ACTION_SCREENSHOT, | ||
FS_EMU_ACTION_SPECIAL, | ||
FS_EMU_ACTION_SWITCH_WINDOW, | ||
FS_EMU_ACTION_TAUNT, | ||
FS_EMU_ACTION_VOLUME_DOWN, | ||
FS_EMU_ACTION_VOLUME_MUTE, | ||
FS_EMU_ACTION_VOLUME_UP, | ||
FS_EMU_ACTION_WARP, | ||
FS_EMU_ACTION_ZOOM, | ||
FS_EMU_ACTION_ZOOM_BORDER, | ||
|
||
FS_EMU_ACTION_LAST, | ||
}; | ||
|
||
void fs_emu_handle_libfsemu_action(int action, int state); | ||
|
||
typedef void (*fs_emu_action_function)(int state); | ||
|
||
#define FS_EMU_ACTION_FLAG_MENU 1 | ||
|
||
typedef struct fs_emu_action { | ||
int input_event; | ||
const char *name; | ||
int flags; | ||
fs_emu_action_function *function; | ||
} fs_emu_action; | ||
|
||
void fs_emu_set_actions(fs_emu_action *actions); | ||
int fs_emu_input_action_from_string(const char *value); | ||
|
||
#endif /* LIBFSEMU_ACTIONS_H */ | ||
|
Oops, something went wrong.