Function input_sys::libinput_device_keyboard_has_key [] [src]

pub unsafe extern fn libinput_device_keyboard_has_key(device: *mut libinput_device,
                                                      code: u32)
                                                      -> c_int

@ingroup device

Check if a @ref LIBINPUT_DEVICE_CAP_KEYBOARD device has a key with the given code (see linux/input.h).

@param device A current input device @param code Key code to check for, e.g. KEY_ESC

@return 1 if the device supports this key code, 0 if it does not, -1 on error.