Lines Matching refs:keyboard
64 skin_keyboard_set_keyset( SkinKeyboard* keyboard, SkinKeyset* kset ) in skin_keyboard_set_keyset() argument
68 if (keyboard->kset && keyboard->kset != android_keyset) { in skin_keyboard_set_keyset()
69 skin_keyset_free(keyboard->kset); in skin_keyboard_set_keyset()
71 keyboard->kset = kset; in skin_keyboard_set_keyset()
76 skin_keyboard_set_rotation( SkinKeyboard* keyboard, in skin_keyboard_set_rotation() argument
79 keyboard->rotation = (rotation & 3); in skin_keyboard_set_rotation()
83 skin_keyboard_on_command( SkinKeyboard* keyboard, SkinKeyCommandFunc cmd_func, void* cmd_opaque ) in skin_keyboard_on_command() argument
85 keyboard->command_func = cmd_func; in skin_keyboard_on_command()
86 keyboard->command_opaque = cmd_opaque; in skin_keyboard_on_command()
90 skin_keyboard_on_key_press( SkinKeyboard* keyboard, SkinKeyEventFunc press_func, void* press_opa… in skin_keyboard_on_key_press() argument
92 keyboard->press_func = press_func; in skin_keyboard_on_key_press()
93 keyboard->press_opaque = press_opaque; in skin_keyboard_on_key_press()
113 skin_keyboard_cmd( SkinKeyboard* keyboard, in skin_keyboard_cmd() argument
117 if (keyboard->command_func) { in skin_keyboard_cmd()
118 keyboard->command_func( keyboard->command_opaque, command, param ); in skin_keyboard_cmd()
124 skin_keyboard_find_last( SkinKeyboard* keyboard, in skin_keyboard_find_last() argument
127 LastKey* k = keyboard->last_keys; in skin_keyboard_find_last()
128 LastKey* end = k + keyboard->last_count; in skin_keyboard_find_last()
138 skin_keyboard_add_last( SkinKeyboard* keyboard, in skin_keyboard_add_last() argument
143 LastKey* k = keyboard->last_keys + keyboard->last_count; in skin_keyboard_add_last()
145 if (keyboard->last_count < MAX_LAST_KEYS) { in skin_keyboard_add_last()
150 keyboard->last_count += 1; in skin_keyboard_add_last()
155 skin_keyboard_remove_last( SkinKeyboard* keyboard, in skin_keyboard_remove_last() argument
158 LastKey* k = keyboard->last_keys; in skin_keyboard_remove_last()
159 LastKey* end = k + keyboard->last_count; in skin_keyboard_remove_last()
167 keyboard->last_count -= 1; in skin_keyboard_remove_last()
174 skin_keyboard_clear_last( SkinKeyboard* keyboard ) in skin_keyboard_clear_last() argument
176 keyboard->last_count = 0; in skin_keyboard_clear_last()
180 skin_keyboard_rotate_sym( SkinKeyboard* keyboard, in skin_keyboard_rotate_sym() argument
183 switch (keyboard->rotation) { in skin_keyboard_rotate_sym()
217 skin_keyboard_key_to_code( SkinKeyboard* keyboard, in skin_keyboard_key_to_code() argument
228 sym = skin_keyboard_rotate_sym(keyboard, sym); in skin_keyboard_key_to_code()
241 if (!keyboard->raw_keys) { in skin_keyboard_key_to_code()
245 LastKey* k = skin_keyboard_find_last(keyboard, sym); in skin_keyboard_key_to_code()
248 skin_keyboard_remove_last( keyboard, sym ); in skin_keyboard_key_to_code()
251 skin_keyboard_add_last( keyboard, sym, mod, 0); in skin_keyboard_key_to_code()
260 if (doAltL) skin_keyboard_add_key_event( keyboard, kKeyCodeAltLeft, 1 ); in skin_keyboard_key_to_code()
261 if (doAltR) skin_keyboard_add_key_event( keyboard, kKeyCodeAltRight, 1 ); in skin_keyboard_key_to_code()
262 if (doCapL) skin_keyboard_add_key_event( keyboard, kKeyCodeCapLeft, 1 ); in skin_keyboard_key_to_code()
263 if (doCapR) skin_keyboard_add_key_event( keyboard, kKeyCodeCapRight, 1 ); in skin_keyboard_key_to_code()
265 skin_keyboard_add_key_event(keyboard, code, down); in skin_keyboard_key_to_code()
268 if (doCapR) skin_keyboard_add_key_event( keyboard, kKeyCodeCapRight, 0 ); in skin_keyboard_key_to_code()
269 if (doCapL) skin_keyboard_add_key_event( keyboard, kKeyCodeCapLeft, 0 ); in skin_keyboard_key_to_code()
270 if (doAltR) skin_keyboard_add_key_event( keyboard, kKeyCodeAltRight, 0 ); in skin_keyboard_key_to_code()
271 if (doAltL) skin_keyboard_add_key_event( keyboard, kKeyCodeAltLeft, 0 ); in skin_keyboard_key_to_code()
303 command = skin_keyset_get_command( keyboard->kset, sym, mod ); in skin_keyboard_key_to_code()
307 skin_keyboard_cmd( keyboard, command, down ); in skin_keyboard_key_to_code()
414 skin_keyboard_enable( SkinKeyboard* keyboard, in skin_keyboard_enable() argument
417 keyboard->enabled = enabled; in skin_keyboard_enable()
419 SDL_EnableUNICODE(!keyboard->raw_keys); in skin_keyboard_enable()
546 skin_keyboard_free( SkinKeyboard* keyboard ) in skin_keyboard_free() argument
548 if (keyboard) { in skin_keyboard_free()
549 AFREE(keyboard); in skin_keyboard_free()