: [libxkbcommon] Question about how to get xkb_keycode_t from
xkb_keysym_t.
Note that there are non-obvious consequences to this. The keymap is
hierarchical upon layouts and levels. You can either do a depth-first search,
or a breadth-first search. This can change behavior. XKeysymToKeycode is
Despite the impression you may get from the API, the compositor is able
(and required to implement many designs) to decode keyboard events into
keysyms, using exactly the same xkb code clients would use and thus
arriving at the same answer.
Therefore if there was a key-grab api to the composit
es == 0)
> return 1; /* still succeeded, just don't have any keycodes */
>
> keycodes = malloc(num_keycodes * sizeof(*keycodes));
> num_keycodes = xkb_keymap_keycodes_from_keysym(keymap, keysym, keycodes);
>
> Cheers,
> Daniel
>
>
>> Thanks and regards,
>>
&
keycodes);
Cheers,
Daniel
> Thanks and regards,
>
> Sung-Jin Park
>
>
>
> --- *Original Message* -------
>
> *Sender* : Daniel Stone
>
> *Date* : 2015-06-01 18:57 (GMT+09:00)
>
> *Title* : Re: [libxkbcommon] Question about how to get xkb_keycode_t from
>
Resend not to make this mail scrubbed. Sorry. :)
--- Original Message ---
Sender : 박성진 S5(책임)/책임/Common Platform Lab(S/W센터)/삼성전자
Date : 2015-06-01 20:22 (GMT+09:00)
Title : Re: Re: [libxkbcommon] Question about how to get xkb_keycode_t from
xkb_keysym_t.
Dear Daniel, thanks for your
ssage ---
Sender : Daniel Stone
Date : 2015-06-01 18:57 (GMT+09:00)
Title : Re: [libxkbcommon] Question about how to get xkb_keycode_t from xkb_keysym_t.
Hi Sung-Jin,
On 1 June 2015 at 07:16, Sung-Jin Park <sj76.p...@samsung.com> wrote:
I'd like to ask how to get keycode(s) f
Hi Sung-Jin,
On 1 June 2015 at 07:16, Sung-Jin Park wrote:
> I'd like to ask how to get keycode(s) from keysym using libxkbcommon API.
> Is there any API in libxkbcommon ?
>
The short answer is, no.
The long answer is, look through the keymap and find every keycode which
produces that keysym,
in libxkbcommon ?
===
Thanks and regards,
Sung-Jin Park
--- Original Message ---
Sender : Sung-Jin Park S5/Senior Engineer/Common
Platform Lab./Samsung Electronics
Date : 2015-06-01 15:16 (GMT+09:00)
Title : [libxkbcommon] Question a
Title: Samsung Enterprise Portal mySingle
Dear Daniel Stone, Ran Benita and all,
I'd like to ask how to get keycode(s) from keysym using libxkbcommon API.
Is there any API in libxkbcommon ?
Thanks in advance,
Sung-Jin Park
___
wayland-devel