#include <winsoftmenu.h>
Data Fields | |
unsigned | lshift: 2 |
State of the left shift key. | |
unsigned | rshift: 2 |
State of the right shift key. | |
void * | extra_data |
Extra data associated with the key. |
Instances of this data structure are allocated temporarily and dispatched to event handlers when soft menu buttons are pressed.
Definition at line 65 of file winsoftmenu.h.
unsigned win_softmenu_event_t::lshift |
State of the left shift key.
This field represents the state of left shift when the menu item was selected. It is set to one of WIN_KEYSTATE_ON, WIN_KEYSTATE_OFF, or WIN_KEYSTATE_PRESSED.
Definition at line 74 of file winsoftmenu.h.
unsigned win_softmenu_event_t::rshift |
State of the right shift key.
This field represents the state of right shift when the menu item was selected. It is set to one of WIN_KEYSTATE_ON, WIN_KEYSTATE_OFF, or WIN_KEYSTATE_PRESSED.
Definition at line 83 of file winsoftmenu.h.
Extra data associated with the key.
This is a data field that is associated with the key using any of win_softmenu_set_item, win_softmenu_add_item, or win_softmenu_insert_item. It is passed verbatim to any event handlers that are called as a result of selecting that menu item.
The meaning and interpretation of this field is left to the application. It should be cast to the appropriate data type before use.
Definition at line 96 of file winsoftmenu.h.