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

NAME

6       XkbGetDeviceButtonActions - Query the button actions associated with an
7       X Input Extension device
8

SYNOPSIS

10       Status  XkbGetDeviceButtonActions   (Display   *dpy,   XkbDeviceInfoPtr
11              device_info,   Bool   all_buttons,  unsigned  int  first_button,
12              unsigned int num_buttons);
13

ARGUMENTS

15       - dpy  connection to X server
16
17       - device_info
18              structure to update with results
19
20       - all_buttons
21              True => get information for all buttons
22
23       - first_button
24              number of first button for which info is desired
25
26       - num_buttons
27              number of buttons for which info is desired
28

DESCRIPTION

30       XkbGetDeviceButtonActions queries the server  for  the  desired  button
31       information  for  the  device  indicated  by  the  device_spec field of
32       device_info and waits for a reply. If successful, XkbGetDeviceButtonAc‐
33       tions  backfills the button actions (btn_acts field of device_info) for
34       only the requested buttons, updates  the  name,  type,  supported,  and
35       unsupported fields, and returns Success.
36
37       all_buttons,  first_button  and  num_buttons specify the device buttons
38       for which actions should  be  returned.  Setting  all_buttons  to  True
39       requests  actions  for  all  device  buttons;  if all_buttons is False,
40       first_button and num_buttons specify  a  range  of  buttons  for  which
41       actions are requested.
42
43       If  a  compatible  version of Xkb is not available in the server or the
44       Xkb extension has not been properly initialized,  XkbGetDeviceButtonAc‐
45       tions  returns BadAccess. If allocation errors occur, a BadAlloc status
46       is returned. If  the  specified  device  (device_info->device_spec)  is
47       invalid,  a  BadKeyboard  status is returned. If the device has no but‐
48       tons, a BadMatch status is returned. If  first_button  and  num_buttons
49       specify illegal buttons, a BadValue status is returned.
50

DIAGNOSTICS

52       BadAccess      The Xkb extension has not been properly initialized
53
54       BadAlloc       Unable to allocate storage
55
56       BadKeyboard    The  device  specified  was  not  a  valid core or input
57                      extension device
58
59       BadMatch       A compatible version of Xkb was  not  available  in  the
60                      server or an argument has correct type and range, but is
61                      otherwise invalid
62
63       BadValue       An argument is out of range
64
65
66
67X Version 11                     libX11 1.6.7     XkbGetDeviceButtonActions(3)
Impressum