2 * FreeRDP: A Remote Desktop Protocol Client
3 * X11 Keyboard Handling
5 * Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
20 #ifndef __XF_KEYBOARD_H
21 #define __XF_KEYBOARD_H
23 #include <freerdp/kbd/kbd.h>
24 #include <freerdp/kbd/vkcodes.h>
28 void xf_kbd_init(xfInfo* xfi);
29 void xf_kbd_set_keypress(xfInfo* xfi, uint8 keycode, KeySym keysym);
30 void xf_kbd_unset_keypress(xfInfo* xfi, uint8 keycode);
31 boolean xf_kbd_key_pressed(xfInfo* xfi, KeySym keysym);
32 void xf_kbd_send_key(xfInfo* xfi, boolean down, uint8 keycode);
33 int xf_kbd_read_keyboard_state(xfInfo* xfi);
34 boolean xf_kbd_get_key_state(xfInfo* xfi, int state, int keysym);
35 int xf_kbd_get_toggle_keys_state(xfInfo* xfi);
36 void xf_kbd_focus_in(xfInfo* xfi);
37 boolean xf_kbd_handle_special_keys(xfInfo* xfi, KeySym keysym);
39 #endif /* __XF_KEYBOARD_H */