2
* This program is free software; you can redistribute it and/or modify
3
* it under the terms of the GNU General Public License as published by
4
* the Free Software Foundation; either version 2 of the License, or
5
* (at your option) any later version.
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software
14
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
* Copyright (C) 2006-2009 XNeur Team
23
#include <X11/Xutil.h>
25
int get_keycode_mod(int keyboard_group);
26
int get_languages_mask(void);
27
void get_keysyms_by_string(char *keyname, KeySym *Lower, KeySym *Upper);
28
char* keycode_to_symbol(KeyCode kc, int group, int state);
38
int keysyms_per_keycode;
39
int keyboard_groups_count;
41
char (*get_ascii)(struct _keymap *p, const char *sym, KeyCode *kc, int *modifier);
42
char (*get_cur_ascii_char) (struct _keymap *p, XEvent e);
43
void (*convert_text_to_ascii)(struct _keymap *p, char *text, KeyCode *kc, int *kc_mod);
44
void (*char_to_keycode)(struct _keymap *p, char ch, KeyCode *kc, int *modifier);
45
void (*print_keymaps)(struct _keymap *p);
46
char* (*lower_by_keymaps)(struct _keymap *p, int gr, char *text);
47
void (*uninit) (struct _keymap *p);
50
struct _keymap *keymap_init(void);
52
#endif /* _KEYMAP_H_ */