X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=doc%2Fquick-guide.md;h=eb1a757e8164002ba44eb0be9c01ba231cf05a94;hb=5e58c8151ec7b74ca17fc7018ba084893bc0ebbc;hp=a57607065e3d023b7641dca2be2bed29a16dd2e0;hpb=832e32dc6ccab1a310c1b1f8dbde26a0f09aa005;p=platform%2Fupstream%2Flibxkbcommon.git diff --git a/doc/quick-guide.md b/doc/quick-guide.md index a576070..eb1a757 100644 --- a/doc/quick-guide.md +++ b/doc/quick-guide.md @@ -16,9 +16,11 @@ the library. We will employ a few use-cases to lead the examples: The snippets are not complete, and some support code is omitted. You can find complete and more complex examples in the source directory: -1. test/interactive-evdev.c contains an interactive evdev client. +1. tools/interactive-evdev.c contains an interactive evdev client. -2. test/interactive-x11.c contains an interactive X11 client. +2. tools/interactive-x11.c contains an interactive X11 client. + +3. tools/interactive-wayland.c contains an interactive Wayland client. Also, the library contains many more functions for examining and using the library context, the keymap and the keyboard state. See the @@ -74,6 +76,7 @@ with a keymap. In this case, we can create the keymap object like this: ~~~{.c} /* From the wl_keyboard::keymap event. */ const char *keymap_string = <...>; + struct xkb_keymap *keymap; keymap = xkb_keymap_new_from_string(ctx, keymap_string, XKB_KEYMAP_FORMAT_TEXT_V1,