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  de‐
11              vice_info, Bool all_buttons, unsigned int first_button, unsigned
12              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 in‐
31       formation  for  the  device  indicated  by the device_spec field of de‐
32       vice_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  un‐
35       supported 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  re‐
39       quests  actions  for  all  device  buttons;  if  all_buttons  is False,
40       first_button and num_buttons specify a range of buttons for  which  ac‐
41       tions 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  in‐
47       valid,  a BadKeyboard status is returned. If the device has no buttons,
48       a BadMatch status is returned. If first_button and num_buttons  specify
49       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 ex‐
57                      tension 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.7.0     XkbGetDeviceButtonActions(3)
Impressum