20 #ifndef FREERDP_CLIENT_X11_XF_KEYBOARD_H
21 #define FREERDP_CLIENT_X11_XF_KEYBOARD_H
23 #include <freerdp/locale/keyboard.h>
25 #include "xf_client.h"
44 BOOL xf_keyboard_init(xfContext* xfc);
45 void xf_keyboard_free(xfContext* xfc);
47 void xf_keyboard_key_press(xfContext* xfc,
const XKeyEvent* event, KeySym keysym);
48 void xf_keyboard_key_release(xfContext* xfc,
const XKeyEvent* event, KeySym keysym);
50 void xf_keyboard_release_all_keypress(xfContext* xfc);
51 BOOL xf_keyboard_key_pressed(xfContext* xfc, KeySym keysym);
53 int xf_keyboard_read_keyboard_state(xfContext* xfc);
54 BOOL xf_keyboard_get_key_state(xfContext* xfc,
int state,
int keysym);
55 UINT32 xf_keyboard_get_toggle_keys_state(xfContext* xfc);
56 void xf_keyboard_focus_in(xfContext* xfc);
57 BOOL xf_keyboard_handle_special_keys(xfContext* xfc, KeySym keysym);
58 void xf_keyboard_handle_special_keys_release(xfContext* xfc, KeySym keysym);
59 BOOL xf_keyboard_set_indicators(rdpContext* context, UINT16 led_flags);
60 BOOL xf_keyboard_set_ime_status(rdpContext* context, UINT16 imeId, UINT32 imeState,
63 BOOL xf_ungrab(xfContext* xfc);