GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
Default keybindings. More...
#include <input/gp_event.h>
Go to the source code of this file.
Macros | |
#define | GP_WIDGET_KEYS_MOD_FOCUS GP_KEY_LEFT_CTRL, GP_KEY_RIGHT_CTRL |
#define | GP_WIDGET_KEY_FOCUS_LEFT GP_KEY_LEFT |
#define | GP_WIDGET_KEY_FOCUS_RIGHT GP_KEY_RIGHT |
#define | GP_WIDGET_KEY_FOCUS_UP GP_KEY_UP |
#define | GP_WIDGET_KEY_FOCUS_DOWN GP_KEY_DOWN |
#define | GP_WIDGET_KEY_FOCUS_NEXT GP_KEY_TAB |
#define | GP_WIDGET_KEYS_MOD_FOCUS_PREV GP_KEY_LEFT_SHIFT, GP_KEY_RIGHT_SHIFT |
#define | GP_WIDGET_KEYS_MOD_COLOR_SCHEME GP_KEY_LEFT_CTRL, GP_KEY_RIGHT_CTRL |
#define | GP_WIDGET_KEY_COLOR_SCHEME GP_KEY_SPACE |
#define | GP_WIDGET_KEYS_MOD_ABOUT GP_KEY_LEFT_CTRL, GP_KEY_RIGHT_CTRL |
#define | GP_WIDGET_KEY_ABOUT GP_KEY_I |
#define | GP_WIDGET_KEYS_MOD_QUIT GP_KEY_LEFT_ALT, GP_KEY_RIGHT_ALT |
#define | GP_WIDGET_KEY_QUIT GP_KEY_F4 |
Functions | |
static int | gp_widget_key_mod_pressed (gp_event *ev) |
Utility function to check for modifier keys. | |
Default keybindings.
Definition in file gp_widget_keys.h.
#define GP_WIDGET_KEY_ABOUT GP_KEY_I |
Key to show about dialog.
Definition at line 59 of file gp_widget_keys.h.
#define GP_WIDGET_KEY_COLOR_SCHEME GP_KEY_SPACE |
Key to toggle color scheme.
Definition at line 54 of file gp_widget_keys.h.
#define GP_WIDGET_KEY_FOCUS_DOWN GP_KEY_DOWN |
Key to move focus down.
Definition at line 44 of file gp_widget_keys.h.
#define GP_WIDGET_KEY_FOCUS_LEFT GP_KEY_LEFT |
Key to move focus left.
Definition at line 38 of file gp_widget_keys.h.
#define GP_WIDGET_KEY_FOCUS_NEXT GP_KEY_TAB |
Key to move focus to a next widget
Definition at line 47 of file gp_widget_keys.h.
#define GP_WIDGET_KEY_FOCUS_RIGHT GP_KEY_RIGHT |
Key to move focus right.
Definition at line 40 of file gp_widget_keys.h.
#define GP_WIDGET_KEY_FOCUS_UP GP_KEY_UP |
Key to move focus up.
Definition at line 42 of file gp_widget_keys.h.
#define GP_WIDGET_KEY_QUIT GP_KEY_F4 |
Key to quit the app.
Definition at line 69 of file gp_widget_keys.h.
#define GP_WIDGET_KEYS_MOD_ABOUT GP_KEY_LEFT_CTRL, GP_KEY_RIGHT_CTRL |
Modifiers to show about dialog.
Definition at line 57 of file gp_widget_keys.h.
#define GP_WIDGET_KEYS_MOD_COLOR_SCHEME GP_KEY_LEFT_CTRL, GP_KEY_RIGHT_CTRL |
Modifer keys for color scheme toggle.
Definition at line 52 of file gp_widget_keys.h.
#define GP_WIDGET_KEYS_MOD_FOCUS GP_KEY_LEFT_CTRL, GP_KEY_RIGHT_CTRL |
If defined widget focus can be moved with arrow keys when any of these keys is pressed.
Definition at line 36 of file gp_widget_keys.h.
#define GP_WIDGET_KEYS_MOD_FOCUS_PREV GP_KEY_LEFT_SHIFT, GP_KEY_RIGHT_SHIFT |
Keys to reverse the direction of previous key if any of these keys is pressed
Definition at line 49 of file gp_widget_keys.h.
#define GP_WIDGET_KEYS_MOD_QUIT GP_KEY_LEFT_ALT, GP_KEY_RIGHT_ALT |
Modifier keys to quit the app.
Definition at line 67 of file gp_widget_keys.h.
|
inlinestatic |
Utility function to check for modifier keys.
ev | An input event. |
Definition at line 25 of file gp_widget_keys.h.
References gp_ev_any_key_pressed, GP_KEY_LEFT_ALT, GP_KEY_LEFT_CTRL, GP_KEY_LEFT_META, GP_KEY_RIGHT_ALT, GP_KEY_RIGHT_CTRL, and GP_KEY_RIGHT_META.