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
17              structure defining the device and modifications
18
19       - first_button
20              number of first button to update, 0 relative
21
22       - num_buttons
23              number of buttons to update
24

DESCRIPTION

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

DIAGNOSTICS

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