xkb_x11_state_new_from_device

Create a new keyboard state object from an X11 keyboard device.

This function is the same as xkb_state_new(), only pre-initialized with the state of the device at the time this function is called.

@param keymap The keymap for which to create the state. @param connection An XCB connection to the X server. @param device_id An XInput 1 device ID (in the range 0-255) with input class KEY. Passing values outside of this range is an error.

@returns A new keyboard state object, or NULL on failure.

@memberof xkb_state

extern (C)
xkb_x11_state_new_from_device
(,
xcb_connection_t* connection
,)

Meta