2011-08-07 21:41:54 +04:00
|
|
|
/**
|
2012-10-09 07:02:04 +04:00
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
2011-08-07 21:41:54 +04:00
|
|
|
* X11 Keyboard Handling
|
|
|
|
*
|
|
|
|
* Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __XF_KEYBOARD_H
|
|
|
|
#define __XF_KEYBOARD_H
|
|
|
|
|
2012-02-18 02:43:00 +04:00
|
|
|
#include <freerdp/locale/keyboard.h>
|
2011-08-26 06:01:33 +04:00
|
|
|
|
2011-08-07 21:41:54 +04:00
|
|
|
#include "xfreerdp.h"
|
|
|
|
|
|
|
|
void xf_kbd_init(xfInfo* xfi);
|
2012-08-03 00:45:03 +04:00
|
|
|
void xf_kbd_clear(xfInfo* xfi);
|
2012-10-09 11:01:37 +04:00
|
|
|
void xf_kbd_set_keypress(xfInfo* xfi, BYTE keycode, KeySym keysym);
|
|
|
|
void xf_kbd_unset_keypress(xfInfo* xfi, BYTE keycode);
|
2012-04-11 08:37:47 +04:00
|
|
|
void xf_kbd_release_all_keypress(xfInfo* xfi);
|
2012-10-09 10:38:39 +04:00
|
|
|
BOOL xf_kbd_key_pressed(xfInfo* xfi, KeySym keysym);
|
2012-10-09 11:01:37 +04:00
|
|
|
void xf_kbd_send_key(xfInfo* xfi, BOOL down, BYTE keycode);
|
2011-08-07 21:41:54 +04:00
|
|
|
int xf_kbd_read_keyboard_state(xfInfo* xfi);
|
2012-10-09 10:38:39 +04:00
|
|
|
BOOL xf_kbd_get_key_state(xfInfo* xfi, int state, int keysym);
|
2011-08-07 21:41:54 +04:00
|
|
|
int xf_kbd_get_toggle_keys_state(xfInfo* xfi);
|
|
|
|
void xf_kbd_focus_in(xfInfo* xfi);
|
2012-10-09 10:38:39 +04:00
|
|
|
BOOL xf_kbd_handle_special_keys(xfInfo* xfi, KeySym keysym);
|
2011-08-07 21:41:54 +04:00
|
|
|
|
|
|
|
#endif /* __XF_KEYBOARD_H */
|