Ran Benita
d9f934ca42
Mention xkb_state_new can return NULL
...
in the header comments.
Signed-off-by: Ran Benita <ran234@gmail.com>
2012-03-27 13:58:27 +01:00
Guillem Jover
087327d9c5
Move doxygen comment before enum item
...
Signed-off-by: Guillem Jover <guillem@hadrons.org>
2012-03-27 13:45:17 +01:00
Daniel Stone
389c2db1d7
Remove internal API from xkbcommon.h
...
And move it to XKBcomminint.h.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-27 13:44:48 +01:00
Daniel Stone
3dcd7ae02c
Remove hardcoded legacy modifier masks
...
Use the xkb_state_mod_* and xkb_map_mod_* API instead.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-27 12:20:42 +01:00
Daniel Stone
729ac12f1c
Remove unused changes structs
...
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-27 12:19:42 +01:00
Daniel Stone
f89b0a80ba
Remove unused members of xkb_state
...
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-27 12:18:50 +01:00
Daniel Stone
ede8473490
Add enum xkb_key_direction instead of bool
...
Use XKB_KEY_UP instead of 0 and XKB_KEY_DOWN instead of 1.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Reported-by: Ran Benita <ran234@gmail.com>
2012-03-27 12:18:41 +01:00
Daniel Stone
7f471a702e
Add state serialisation API
...
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-27 12:11:27 +01:00
Daniel Stone
d039622a65
Rename keymap allocation API
...
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-22 17:39:12 +00:00
Daniel Stone
3d672fcfea
Add LED state API
...
And also convert state.c to use the state API for mods and groups,
rather than testing the state members directly.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-22 14:32:53 +00:00
Daniel Stone
cfb07724b7
Fix documentation bugs with mod/group state API
...
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-22 14:30:58 +00:00
Daniel Stone
edcaab6512
Round out new state API
...
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-21 15:25:45 +00:00
Daniel Stone
ecea0d71b2
Add new state API
...
Add new API to deal with xkb_state objects, including
xkb_state_update_key, which runs the XKB action machinery internally to
calculate what exactly happens to the state when a given key is pressed
or released.
The canonical way to deal with keys is now:
struct xkb_state *state = xkb_state_new(xkb);
xkb_keysym_t *syms;
int num_syms;
xkb_state_update_key(state, key, is_down);
num_syms = xkb_key_get_syms(state, key, &syms);
More state handling API, including a way to get at or ignore preserved
modifiers, is on its way.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-21 02:22:04 +00:00
Daniel Stone
62444a117c
Convert interp action from xkb_any_action to xkb_action
...
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-14 17:06:09 +00:00
Daniel Stone
54aa839c0e
Remove component listing code
...
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-14 12:00:54 +00:00
Daniel Stone
3ee370e969
Remove unused control members
...
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-14 12:00:54 +00:00
Daniel Stone
5dd817339d
Add a tiny bit of documentation to xkbcommon.h
...
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-14 11:56:59 +00:00
Daniel Stone
bc07452542
Add xkb_key_get_syms API
...
(And a slight cosmetic header reformatting.)
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-13 19:06:05 +00:00
Daniel Stone
24c61d0f78
Remove half-implemented radio groups
...
It looks like this could never have worked anyway, what with num_rg
always being 0 everywhere. Remove it.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-10 14:27:06 +00:00
Daniel Stone
e7c8bac79d
Remove indirect XkbCM* and XkbSM* macros
...
The XkbKey* macros used to work through XkbCM* and XkbSM* variants, for
the xkb_map and xkb_server_map respectively; the latter versions weren't
used by anyone at all, so just bin them and make the macros work
directly.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-10 14:08:43 +00:00
Daniel Stone
971eb485c5
Clean up xkb_keysym_to_string message
...
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-09 20:01:33 +00:00
Daniel Stone
0bb24c2d23
Introduce xkb_keysym_t type
...
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-09 19:30:31 +00:00
Daniel Stone
d67a94d374
Remove atom functions from public API
...
They're no longer needed since we don't expose any atoms in the
published API anymore. As a result, we don't need to support external
atom implementations either. Result!
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-09 19:30:31 +00:00
Daniel Stone
731e5c40bc
Stringify public name types
...
Ensure that all names under xkb_desc are strings, rather than atoms.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-09 19:30:31 +00:00
Daniel Stone
ed5c6c1796
Remove geometry support, again
...
It still parses geometry, but happily throws it away.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-09 19:30:30 +00:00
Daniel Stone
b28823cc59
Remove KcCGST names from the map
...
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-09 16:04:00 +00:00
Daniel Stone
f57dcfebf4
Raise keycode range to 32 bits
...
\o/
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-02-15 16:24:51 +00:00
Daniel Stone
4e22851141
Introduce xkb_keycode_t for keycodes
...
And use it consistently everywhere, including with a special long-safe
internal keycode type, to ease the transition to large keycodes.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-02-15 16:24:50 +00:00
Daniel Stone
ead9d0cb62
Move include path from X11/extensions/ to xkbcommon/
...
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-02-15 16:24:50 +00:00
Pekka Paalanen
c19661b965
Add xkbc_free_keymap helper
...
Which just calls XkbcFreeKeyboard with the only arguments you'd ever
pass it.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2011-12-16 12:52:00 +00:00
Kristian Høgsberg
a63e82be2a
Rename XkbcInternAtom() to xkb_intern_atom() and export
...
Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
2011-01-29 14:10:22 -05:00
Gaetan Nadon
ff8e8f696a
config: include: use nobase_include_HEADERS
...
Slightly simpler.
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-12-18 11:19:56 -05:00
Kristian Høgsberg
125691573c
Restore compatible action structs
...
This unbreaks the X server code to serialize an xkb_desc, but loses the
32 bit vmod fields. Needs some work...
2010-10-20 15:57:45 -04:00
Kristian Høgsberg
a84c08795e
Use flex for generating the scanner, add support for parsing from strings
...
Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
2010-10-20 14:03:53 -04:00
Kristian Høgsberg
a2f115581d
Add struct xkb_state
2010-10-19 15:16:50 -04:00
Kristian Høgsberg
e879828717
Don't return a static buffer in public API
2010-10-08 15:33:18 -04:00
Kristian Høgsberg
d202bc4462
Pull in XKB_COMMON_* version of modifier masks
...
This way we can use libxkbcommon without having to include X.h.
2010-10-08 15:07:53 -04:00
Kristian Høgsberg
fb05ee47bf
Remove libxkbfile dependency for real this time
2010-09-03 20:35:28 -04:00
Kristian Høgsberg
20bfe1280d
Use const char * in struct xkb_rule_names
2010-08-29 21:30:10 -04:00
Kristian Høgsberg
be2bd66181
Pull in a few #defines from libxkbfile and lower kbproto requirement
2010-08-25 14:51:52 -04:00
Kristian Høgsberg
351f8c6587
Drop Bool type
...
It's a nightmare trying to avoid double definitions.
2010-07-02 15:05:21 -04:00
Kristian Høgsberg
b3805a2360
Get rid of a few unused #defines in public header
2010-07-02 14:21:59 -04:00
Kristian Høgsberg
97fbc348b0
Rename XkbRMLVOSet to struct xkb_rule_names
2010-07-02 14:21:52 -04:00
Kristian Høgsberg
15f259993e
Move private structs and defines to private headers
2010-07-02 12:20:59 -04:00
Kristian Høgsberg
3f0034a990
Rename public entry points to lowercase and underscore
2010-07-02 12:20:59 -04:00
Kristian Høgsberg
5669e1a82d
Compile with -fvisibility=hidden when possible
2010-07-02 12:20:59 -04:00
Kristian Høgsberg
9f6026867a
Pull in enough structs and defines from XKBstr.h to only need XKB.h
...
We want to move away from sharing implementation structs and let libX11
and libxkbcommon use each their own set of structs.
2010-07-02 12:20:54 -04:00
Kristian Høgsberg
9d55d5bbf6
Drop Xmd.h include now that we're using uint32_t
2010-06-30 17:32:54 -04:00
Kristian Høgsberg
a76df86572
Use the right action structs
...
We were casting the union members to the wrong action structs (from kbproto).
2010-06-30 16:33:25 -04:00
Kristian Høgsberg
1723ef1bc7
Copy over missing action structs from kbproto
2010-06-30 15:48:39 -04:00