 |
MPLABĀ® Harmony Graphics Suite
|
Go to the documentation of this file.
44 #ifndef LEGATO_INPUT_H
45 #define LEGATO_INPUT_H
64 #define LE_INPUT_PRIMARY_ID 0
65 #define LE_MAX_TOUCH_STATES 2
205 KEY_LAST = KEY_KP_PERIOD
222 BUTTON_LAST = BUTTON_WHEEL_DOWN
225 #define NUM_KEYS KEY_LAST + 1
226 #define NUM_BUTTONS BUTTON_LAST + 1
255 int32_t driverAdjustX;
256 int32_t driverAdjustY;
267 void leInput_Shutdown();
leEventResult
This enum represents an event result.
Definition: legato_event.h:146
leResult
This enum represents function call results.
Definition: legato_common.h:134
This struct represents a rectangle.
Definition: legato_common.h:405
leResult leEvent_AddEvent(leEvent *evt)
Add event.
Definition: legato_event.c:73
@ LE_EVENT_TOUCH_DOWN
Definition: legato_event.h:68
leListNode * head
Definition: legato_list.h:92
@ LE_EVENT_DEFERRED
Definition: legato_event.h:149
leList events
Definition: legato_event.h:116
This enum presents a event. An event contains valid event ids.
Definition: legato_event.h:88
Memory functions and definitions.
@ LE_EVENT_TOUCH_UP
Definition: legato_event.h:69
Legato event definitions.
LIB_EXPORT leWidget * leGetFocusWidget()
Get focus widget.
Definition: legato_state.c:490
uint32_t valid
Definition: legato_input.h:236
int32_t y
Definition: legato_input.h:238
leBool
This enum represents booleans.
Definition: legato_common.h:157
@ LE_FALSE
Definition: legato_common.h:158
@ LE_EVENT_TOUCH_MOVE
Definition: legato_event.h:70
LIB_EXPORT leBool leIsDrawing()
Check active screen drawing state.
Definition: legato_state.c:561
leWidget * leUtils_PickFromWidget(const leWidget *wgt, int32_t x, int32_t y)
Finds the top-most visible widget in a layer at the given coordinates.
Definition: legato_utils.c:34
int32_t x
Definition: legato_input.h:237
General internal utilities for the library.
leEventID id
Definition: legato_event.h:89
This struct represents a touch state.
Definition: legato_input.h:235
struct leListNode * next
Definition: legato_list.h:70
leWidget rootWidget[LE_LAYER_COUNT]
Definition: legato_state.h:83
@ LE_EVENT_HANDLED
Definition: legato_event.h:148
@ LE_TRUE
Definition: legato_common.h:159
Common macros and definitions used by Legato.
void * val
Definition: legato_list.h:71
This struct represents a list node .
Definition: legato_list.h:69
LIB_EXPORT leResult leSetFocusWidget(leWidget *widget)
Get language by index.
Definition: legato_state.c:495
This structure represents a integer Cartesian point.
Definition: legato_common.h:357