20#ifndef __MUTEKI_UI_FRAMEWORK_EVENT_H__
21#define __MUTEKI_UI_FRAMEWORK_EVENT_H__
203extern void PutEventExt(
int type,
unsigned int value,
void *user_data);
bool TestKeyEvent(ui_event_t *event)
Peek pending events in the system event queue.
unsigned short GetCapsState(void)
Get the state of the SHIFT toggle key.
bool PutEvent(ui_event_t *event)
Produce an event in the main event queue.
int CheckPenEvent(void)
Check whether or not there are any pending system UI events.
void ClearEvent(ui_event_t *event)
Invalidate an event struct.
unsigned short GetShiftState(void)
Get the state of the SHIFT toggle key.
int GetPenEvent(ui_event_sys_t *event)
Consume event from the system UI event queue (mostly for touch).
void PutEventExt(int type, unsigned int value, void *user_data)
Produce an event in the main event queue (by values).
void ClearPenState(void)
Reset the touch state tracker only.
toggle_key_state_e
Toggle key states.
Definition event.h:32
@ TOGGLE_KEY_ACTIVE
Toggle key is active.
Definition event.h:42
@ TOGGLE_KEY_INACTIVE
Toggle key is inactive.
Definition event.h:37
@ TOGGLE_KEY_TRIGGERED
Toggle key is triggered and will deactivate itself.
Definition event.h:48
unsigned int GetEventType(void)
Get the current event type bit mask.
int PutSystemEvent(ui_event_sys_t *event)
Produce a system UI event.
void GetSysKeyState(key_press_event_config_t *config)
Read current configuration of key event generator.
void ClearAllEvents(void)
Discard unprocessed UI events.
unsigned short SetCapsState(unsigned short new_state)
Manually set the state of the CAPS toggle key.
bool SendMessage(ui_event_t *event)
Synchronously send an event to a recipient, bypassing the event queuing mechanism.
unsigned int SetEventType(unsigned int mask)
Set the event type bit mask.
bool GetEvent(ui_event_t *event)
Consume an event.
void SetSysKeyState(const key_press_event_config_t *config)
Configure key event generator.
void ClearPenEvent(void)
Discard all unconsumed system UI events.
bool GetPendEvent(ui_event_t *event)
Consume an event from the main event queue.
bool SendMessageExt(ui_component_t *recipient, int event_type, unsigned int value, void *user_data)
Synchronously send an event to a recipient (by values).
bool TestPendEvent(ui_event_t *event)
Peek pending events in the main event queue, and also special events.
void ClearPendEvent(void)
Empty all unconsumed events in the main event queue.
unsigned short SetShiftState(unsigned short new_state)
Manually set the state of the SHIFT toggle key.
UI framework type (component, group, event) definitions.
struct ui_event_std_s ui_event_t
ui_event_std_s
Definition framework.h:96
struct ui_component_s ui_component_t
ui_component_s
Definition framework.h:71
struct ui_event_sys_s ui_event_sys_t
ui_event_sys_s
Definition framework.h:81
Configuration struct for key press event generator.
Definition event.h:64
unsigned short long_press_delay
Delay interval before triggering long press repeat.
Definition event.h:68
unsigned short beep_on_press
Whether or not to beep on key/touchscreen presses.
Definition event.h:76
unsigned short long_press_repeat_rate
Repeat rate when long press repeat is triggered.
Definition event.h:72