Muteki
EABI code execution on Besta® RTOS devices.
Loading...
Searching...
No Matches
event.h
Go to the documentation of this file.
1/*
2 * Copyright 2024-2026 dogtopus
3 * SPDX-License-Identifier: MIT
4 */
5
10
11#ifndef __MUTEKI_UI_TYPES_EVENT_H__
12#define __MUTEKI_UI_TYPES_EVENT_H__
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
23 /* 0x00 */
24 KEY_ESC = 0x01,
25 KEY_LEFT,
26 KEY_UP,
27 KEY_RIGHT,
28 KEY_DOWN,
29 KEY_PGUP,
30 KEY_PGDN,
31 KEY_CAPS = 0x0a,
32 KEY_DEL = 0xc,
33 KEY_ENTER = 0x0d,
34 /* 0x10 */
39 KEY_MENU = 0x11,
48 KEY_FONT = 0x12,
49 /* 0x20 */
50 KEY_SPACE = ' ',
51 KEY_EXCL = '!',
52 KEY_TAB = 0x22,
53 KEY_HASH = '#',
54 KEY_DOLLAR = '$',
55 KEY_PERCENT = '%',
56 KEY_LPAREN = '(',
57 KEY_RPAREN = ')',
58 KEY_STAR = '*',
59 KEY_COMMA = ',',
60 KEY_DASH = '-',
61 KEY_DOT = '.',
62 /* 0x30 */
63 KEY_0 = '0',
64 KEY_1 = '1',
65 KEY_2 = '2',
66 KEY_3 = '3',
67 KEY_4 = '4',
68 KEY_5 = '5',
69 KEY_6 = '6',
70 KEY_7 = '7',
71 KEY_8 = '8',
72 KEY_9 = '9',
73 KEY_QUESTION = '?',
74 /* 0x40 */
75 KEY_AT = '@',
76 KEY_A = 'A',
77 KEY_B = 'B',
78 KEY_C = 'C',
79 KEY_D = 'D',
80 KEY_E = 'E',
81 KEY_F = 'F',
82 KEY_G = 'G',
83 KEY_H = 'H',
84 KEY_I = 'I',
85 KEY_J = 'J',
86 KEY_K = 'K',
87 KEY_L = 'L',
88 KEY_M = 'M',
89 KEY_N = 'N',
90 KEY_O = 'O',
91 /* 0x50 */
92 KEY_P = 'P',
93 KEY_Q = 'Q',
94 KEY_R = 'R',
95 KEY_S = 'S',
96 KEY_T = 'T',
97 KEY_U = 'U',
98 KEY_V = 'V',
99 KEY_W = 'W',
100 KEY_X = 'X',
101 KEY_Y = 'Y',
102 KEY_Z = 'Z',
103 /* 0x80 */
119 KEY_POWER = 0x83,
120 KEY_F1 = 0x84,
121 KEY_F2,
122 KEY_F3,
123 KEY_F4,
124 KEY_F5,
129 KEY_SHIFT = 0x8b,
133 KEY_IME = 0x8e,
138 /* 0x90 */
146 KEY_HOME = 0x93,
164 KEY_HELP = 0x95,
168 KEY_SAVE = 0x96,
185 /* 0xa0 */
246 /* 0xb0 */
247 KEY_PRIME_APPS = 0xb1,
248 KEY_PRIME_PLOT,
249 KEY_PRIME_NUM,
250 KEY_PRIME_VIEW,
251 KEY_PRIME_CAS,
252 KEY_PRIME_ALPHA,
253 KEY_PRIME_MINUS,
254 KEY_PRIME_DECIMAL_POINT,
255 KEY_PRIME_PLUS,
256 /* 0xc0 */
260 KEY_FAV = 0xc0,
261 /* 0xd0 */
282 /* 0xe0 */
295 /* 0xf0 */
307 KEY_EDIT = 0xf5,
325 KEY_VOL = 0xfa,
342 /* 0x100+ */
343 KEY_INS = 0x101,
352 KEY_TTS = 0x104,
353 KEY_SHIFT_PGUP = 0xe047,
354 KEY_PRIME_HOME = 0xe047,
355 KEY_SHIFT_PGDN = 0xe04f,
356};
357
372
421
443
470
491
492#ifdef __cplusplus
493} // extern "C"
494#endif
495
496#endif // __MUTEKI_UI_TYPES_EVENT_H__
scroll_wheel_e
Scroll wheel direction.
Definition event.h:362
@ SCROLL_DOWN
Scroll down (clockwise direction).
Definition event.h:366
@ SCROLL_UP
Scroll up (counter-clockwise direction).
Definition event.h:370
ui_event_component_call_e
Internal UI component call request types.
Definition event.h:449
@ UI_EVENT_COMPONENT_CALL_SET_STATE
Set state.
Definition event.h:468
@ UI_EVENT_COMPONENT_CALL_ERASE_BG
Erase the background of the component.
Definition event.h:454
@ UI_EVENT_COMPONENT_CALL_DRAW
Draw the component.
Definition event.h:459
ui_keycode_e
List of available keycodes.
Definition event.h:22
@ KEY_MENU
Bring up the function menu of the current scene.
Definition event.h:39
@ KEY_BACKLIGHT
Open the Backlight adjustment menu.
Definition event.h:316
@ KEY_APP_DICT_ZH_EN_BESTA
Launch Besta Chinese-English dictionary.
Definition event.h:286
@ KEY_APP_MISC_3
Board-specific app launching shortcut.
Definition event.h:189
@ KEY_SYMBOL
Activate the symbol selection input method.
Definition event.h:142
@ KEY_APP_DICT_EN_LONGMAN
Launch Longman dictionary.
Definition event.h:231
@ KEY_APP_TRANSLATOR_ZH_EN
Open the Chinese to English translator app.
Definition event.h:277
@ KEY_HOME_MENU
Return to home menu.
Definition event.h:151
@ KEY_APP_DICT_JA_ZH_BESTA
Launch Besta Japanese-Chinese dictionary.
Definition event.h:290
@ KEY_PRIME_MENU
The MENU key on HP Prime.
Definition event.h:156
@ KEY_APP_DICT_JA_DAJIRIN
Launch Daijirin Japanese dictionary.
Definition event.h:203
@ KEY_APP_DICT_EN_PRO
Launch Besta professional vocabulary dictionary.
Definition event.h:281
@ KEY_FONT
Change font size.
Definition event.h:48
@ KEY_TTS
Trigger TTS.
Definition event.h:352
@ KEY_AUX_MENU
Open the global auxilary menu on touchscreen-only devices.
Definition event.h:269
@ KEY_VOL_BACKLIGHT
Open the Volume + Backlight adjustment menu.
Definition event.h:176
@ KEY_SCROLL_WHEEL_EVENT
Scroll wheel event.
Definition event.h:347
@ KEY_APP_MP3_PLAYER
Launch MP3 player.
Definition event.h:172
@ KEY_SYLLABLE
Dictionary: Pronounce the current word syllable-by-syllable.
Definition event.h:180
@ KEY_REPEAT
Dictionary: Repeatedly read out the current word.
Definition event.h:341
@ KEY_APP_DICT_EN_OXFORD
Launch Oxford dictionary.
Definition event.h:299
@ KEY_SEARCH
Launch the unified search app.
Definition event.h:311
@ KEY_APP_MISC_7
Board-specific app launching shortcut.
Definition event.h:226
@ KEY_APP_MISC_6
Board-specific app launching shortcut.
Definition event.h:212
@ KEY_APP_GAMES
Launch the Games app.
Definition event.h:208
@ KEY_APP_REC
Launch voice recorder.
Definition event.h:128
@ KEY_LANG_YUE
Trigger TTS in Cantonese.
Definition event.h:111
@ KEY_COMPARE
Dictionary: Parrot the current word and compare the pronunciations.
Definition event.h:320
@ KEY_APP_TRANSLATOR_EN_ZH
Open the English to Chinese translator app.
Definition event.h:273
@ KEY_POWER
Power button event.
Definition event.h:119
@ KEY_IME
Switch input method.
Definition event.h:133
@ KEY_LANG_CHN
Trigger TTS in Mandarin Chinese.
Definition event.h:107
@ KEY_APP_MISC_8
Board-specific app launching shortcut.
Definition event.h:240
@ KEY_APP_MISC_5
Board-specific app launching shortcut.
Definition event.h:198
@ KEY_TOGGLE_SC_TC
Toggle simplified/traditional Chinese.
Definition event.h:160
@ KEY_BATTERY
Display battery indicator popup.
Definition event.h:329
@ KEY_LANG_JPN
Trigger TTS in Japanese.
Definition event.h:137
@ KEY_LANG_ENG
Trigger TTS in English.
Definition event.h:115
@ KEY_APP_DICT_EN_ZH_BESTA
Launch Besta English-Chinese dictionary.
Definition event.h:303
@ KEY_APP_DICT_EN_JA_GENIUS
Launch Genius English-Japanese dictionary.
Definition event.h:245
@ KEY_ORIGINAL_INPUT
Dictionary and search: Go back to the first screen the user initiated a search (with input memorized)...
Definition event.h:184
@ KEY_APP_ALBUM
Launch the album app.
Definition event.h:222
@ KEY_APP_DICT_JA_EN_GENIUS
Launch Genius Japanese-English dictionary.
Definition event.h:236
@ KEY_APP_DICT_JA_SHINMEIKAI
Launch Shin-Meikai Japanese dictionary.
Definition event.h:217
@ KEY_HOME
Return to home menu.
Definition event.h:146
@ KEY_HELP
Show in-app help.
Definition event.h:164
@ KEY_FUNC_MENU
Bring up the function menu of the current scene.
Definition event.h:44
@ KEY_CONTRAST
Open LCD backlight and contrast adjustment menu.
Definition event.h:333
@ KEY_VOL
Open the Volume adjustment menu.
Definition event.h:325
@ KEY_APP_VIDEO_PLAYER
Launch video player app.
Definition event.h:265
@ KEY_FAV
Show the Favorites menu.
Definition event.h:260
@ KEY_USB_INSERTION
Event on USB cable insertion.
Definition event.h:337
@ KEY_EDIT
Show the edit menu (cut/copy/paste).
Definition event.h:307
@ KEY_APP_FLASHCARD
Launch the flashcard app.
Definition event.h:194
@ KEY_APP_DICT_ZH_JA_BESTA
Launch Besta Chinese-Japanese dictionary.
Definition event.h:294
@ KEY_SAVE
Save current change and exit.
Definition event.h:168
ui_event_internal_e
Internal system UI event types.
Definition event.h:429
@ UI_EVENT_INTERNAL_BATTERY_CHECK_REQUEST
Request GetEvent() to do a low battery check.
Definition event.h:437
@ UI_EVENT_INTERNAL_BYPASS
Queue this event normally into the system event queue. Exact purpose is unclear.
Definition event.h:441
@ UI_EVENT_INTERNAL_FLAG
Set a flag but do not queue the event.
Definition event.h:433
ui_event_source_e
Event source.
Definition event.h:476
@ UI_EVENT_SOURCE_SEND_MESSAGE
Event is a message (produced via SendMessage()).
Definition event.h:484
@ UI_EVENT_SOURCE_SYSTEM
Event is a system event (from the system event queue).
Definition event.h:480
@ UI_EVENT_SOURCE_PUT_EVENT
Event is a regular event and not a UI_EVENT_TYPE_KEY or UI_EVENT_TYPE_SPECIAL (from the main event qu...
Definition event.h:489
ui_event_type_e
UI event types.
Definition event.h:376
@ UI_EVENT_TYPE_INTERNAL
Internal system event. Exact purpose is unclear.
Definition event.h:409
@ UI_EVENT_TYPE_COMPONENT_CALL
Internal UI component call request.
Definition event.h:414
@ UI_EVENT_TYPE_TOUCH_MOVE
Touch/pen move event.
Definition event.h:388
@ UI_EVENT_TYPE_TOUCH_END
End of touch/pen up event.
Definition event.h:392
@ UI_EVENT_TYPE_INVALID
Invalid/cleared.
Definition event.h:380
@ UI_EVENT_TYPE_TOUCH_BEGIN
Beginning of touch/pen down event.
Definition event.h:384
@ UI_EVENT_TYPE_KEY
Key(s) pressed.
Definition event.h:396
@ UI_EVENT_TYPE_COMPONENT_CMD
Inter-component communication.
Definition event.h:404
@ UI_EVENT_TYPE_SPECIAL
Special event. Bypasses the queues and sets a flag instead. Exact purpose is unclear.
Definition event.h:400
@ UI_EVENT_TYPE_KEY_UP
Key(s) released.
Definition event.h:419