Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pirvi-public
glfw
Commits
8bc0c5c2
Commit
8bc0c5c2
authored
Feb 12, 2018
by
Emmanuel Gil Peyrot
Committed by
linkmauve
Feb 24, 2018
Browse files
Wayland: dlsym() xkb_keymap_key_repeats
parent
97bf16e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/wl_init.c
View file @
8bc0c5c2
...
...
@@ -781,6 +781,8 @@ int _glfwPlatformInit(void)
_glfw_dlsym
(
_glfw
.
wl
.
xkb
.
handle
,
"xkb_keymap_unref"
);
_glfw
.
wl
.
xkb
.
keymap_mod_get_index
=
(
PFN_xkb_keymap_mod_get_index
)
_glfw_dlsym
(
_glfw
.
wl
.
xkb
.
handle
,
"xkb_keymap_mod_get_index"
);
_glfw
.
wl
.
xkb
.
keymap_key_repeats
=
(
PFN_xkb_keymap_key_repeats
)
_glfw_dlsym
(
_glfw
.
wl
.
xkb
.
handle
,
"xkb_keymap_key_repeats"
);
_glfw
.
wl
.
xkb
.
state_new
=
(
PFN_xkb_state_new
)
_glfw_dlsym
(
_glfw
.
wl
.
xkb
.
handle
,
"xkb_state_new"
);
_glfw
.
wl
.
xkb
.
state_unref
=
(
PFN_xkb_state_unref
)
...
...
src/wl_platform.h
View file @
8bc0c5c2
...
...
@@ -105,6 +105,7 @@ typedef void (* PFN_xkb_context_unref)(struct xkb_context*);
typedef
struct
xkb_keymap
*
(
*
PFN_xkb_keymap_new_from_string
)(
struct
xkb_context
*
,
const
char
*
,
enum
xkb_keymap_format
,
enum
xkb_keymap_compile_flags
);
typedef
void
(
*
PFN_xkb_keymap_unref
)(
struct
xkb_keymap
*
);
typedef
xkb_mod_index_t
(
*
PFN_xkb_keymap_mod_get_index
)(
struct
xkb_keymap
*
,
const
char
*
);
typedef
int
(
*
PFN_xkb_keymap_key_repeats
)(
struct
xkb_keymap
*
,
xkb_keycode_t
);
typedef
struct
xkb_state
*
(
*
PFN_xkb_state_new
)(
struct
xkb_keymap
*
);
typedef
void
(
*
PFN_xkb_state_unref
)(
struct
xkb_state
*
);
typedef
int
(
*
PFN_xkb_state_key_get_syms
)(
struct
xkb_state
*
,
xkb_keycode_t
,
const
xkb_keysym_t
**
);
...
...
@@ -115,6 +116,7 @@ typedef xkb_mod_mask_t (* PFN_xkb_state_serialize_mods)(struct xkb_state*, enum
#define xkb_keymap_new_from_string _glfw.wl.xkb.keymap_new_from_string
#define xkb_keymap_unref _glfw.wl.xkb.keymap_unref
#define xkb_keymap_mod_get_index _glfw.wl.xkb.keymap_mod_get_index
#define xkb_keymap_key_repeats _glfw.wl.xkb.keymap_key_repeats
#define xkb_state_new _glfw.wl.xkb.state_new
#define xkb_state_unref _glfw.wl.xkb.state_unref
#define xkb_state_key_get_syms _glfw.wl.xkb.state_key_get_syms
...
...
@@ -237,6 +239,7 @@ typedef struct _GLFWlibraryWayland
PFN_xkb_keymap_new_from_string
keymap_new_from_string
;
PFN_xkb_keymap_unref
keymap_unref
;
PFN_xkb_keymap_mod_get_index
keymap_mod_get_index
;
PFN_xkb_keymap_key_repeats
keymap_key_repeats
;
PFN_xkb_state_new
state_new
;
PFN_xkb_state_unref
state_unref
;
PFN_xkb_state_key_get_syms
state_key_get_syms
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment