1XkbSetDeviceButtonActions(3)     XKB FUNCTIONS    XkbSetDeviceButtonActions(3)
2
3
4

NAME

6       XkbSetDeviceButtonActions - Change only the button actions for an input
7       extension device
8

SYNOPSIS

10       Bool XkbSetDeviceButtonActions (Display *dpy, XkbDeviceInfoPtr  device,
11              unsigned int first_button, unsigned int num_buttons);
12

ARGUMENTS

14       dpy    connection to X server
15
16       device structure defining the device and modifications
17
18       first_button
19              number of first button to update, 0 relative
20
21       num_buttons
22              number of buttons to update
23

DESCRIPTION

25       XkbSetDeviceButtonActions  assigns actions to the buttons of the device
26       specified  in  device_info->device_spec.   Actions  are   assigned   to
27       num_buttons  buttons beginning with first_button and are taken from the
28       actions specified in device_info->btn_acts.
29
30       If the server does not support assignment of Xkb actions  to  extension
31       device  buttons,  XkbSetDeviceButtonActions  has  no effect and returns
32       False. If the device has no buttons or if first_button  or  num_buttons
33       specify  buttons  outside  of  the  valid  range  as  determined by de‐
34       vice_info->num_btns, the function has no effect and returns False. Oth‐
35       erwise,  XkbSetDeviceButtonActions  sends  a  request  to the server to
36       change the actions for the specified buttons and returns True.
37
38       If the actual request sent to the server involved illegal  button  num‐
39       bers,  a  BadValue  protocol  error  is generated. If an invalid device
40       identifier is specified in device_info->device_spec, a BadKeyboard pro‐
41       tocol error results. If the actual device specified in device_info->de‐
42       vice_spec does not contain buttons and a request affecting  buttons  is
43       made, a BadMatch protocol error is generated.
44

DIAGNOSTICS

46       BadKeyboard    The  device  specified was not a valid core or input ex‐
47                      tension device
48
49       BadMatch       A compatible version of Xkb was  not  available  in  the
50                      server or an argument has correct type and range, but is
51                      otherwise invalid
52
53       BadValue       An argument is out of range
54
55
56
57X Version 11                     libX11 1.8.7     XkbSetDeviceButtonActions(3)
Impressum