XSETDEVICEBUTTONMAPP
NAMESYNOPSIS
DESCRIPTION
DIAGNOSTICS
SEE ALSO
NAME
XSetDeviceButtonMapping, XGetDeviceButtonMapping − query or change device button mappings
SYNOPSIS
#include <X11/extensions/XInput.h>
int
XSetDeviceButtonMapping( Display *display,
XDevice *device,
unsigned char map[],
int nmap);
int
XGetDeviceButtonMapping( Display *display,
XDevice *device,
unsigned char map_return[],
int nmap);
display
Specifies the connection to the X server.
device
Specifies the device whose button mapping is to be
queried or changed.
map
Specifies the mapping list.
map_return
Returns the mapping list.
nmap
Specifies the number of items in the mapping list.
DESCRIPTION
The
XSetDeviceButtonMapping request sets the mapping of the
specified device. If it succeeds, the X server generates a
DeviceMappingNotify event, and XSetDeviceButtonMapping
returns
MappingSuccess. Element map[i] defines the logical button
number for the physical button i+1. The length of the list
must
be the same as XGetDeviceButtonMapping would return, or a
BadValue error results. A zero element disables a button,
and
elements are not restricted in value by the number of
physical
buttons. However, no two elements can have the same nonzero
value, or a BadValue error results. If any of the buttons to
be
altered are logically in the down state,
XSetDeviceButtonMapping returns MappingBusy, and the mapping
is
not changed.
XSetDeviceButtonMapping
can generate BadDevice, BadMatch, and
BadValue errors.
The
XGetDeviceButtonMapping request returns the current mapping
of the specified device. Buttons are numbered starting from
one.XGetDeviceButtonMapping returns the number of physical
buttons actually on the device. The nominal mapping for a
device is map[i]=i+1. The nmap argument specifies the length
of
the array where the device mapping is returned, and only the
first nmap elements are returned in map_return.
XGetDeviceButtonMapping
can generate BadDevice or BadMatch
errors.
DIAGNOSTICS
BadDevice
An invalid device was specified. The specified device
does not exist or has not been opened by this client via
XOpenInputDevice. This error may also occur if the
specified device is the X keyboard or X pointer device.
BadMatch
This error may occur if an XGetDeviceButtonMapping or
XSetDeviceButtonMapping request was made specifying a
device that has no buttons.
BadValue
Some numeric value falls outside the range of values
accepted by the request. Unless a specific range is
specified for an argument, the full range defined by the
argument´s type is accepted. Any argument defined as a
set of alternatives can generate this error.
SEE ALSO
XChangeDeviceKeyboardControl(3),
XChangeDeviceKeyMapping(3),
XChangeDeviceModifierMapping(3)
More Linux Commands
manpages/optionRestore.3.html
optionRestore(3) restore option state from memory copy......
Copy back the option state from saved memory. The allocated memory is left intact, so this routine can be called repeatedly without having to call optionSaveSta
manpages/domainname.1.html
domainname(1) - show or set the system's NIS/YP domain name
Hostname is the program that is used to either set or display the current host, domain or node name of the system. These names are used by many of the networkin
manpages/snmp_read.3.html
snmp_read(3) - netsnmp_session_api functions (Man Page).....
Snmp_sess_init prepares a netsnmp_session that sources transport characteristics and common information that will be used for a set of SNMP transactions. After
manpages/seek.n.html
seek(n) - Change the access position for an open channel....
Changes the current access position for channelId. ChannelId must be an identifier for an open channel such as a Tcl standard channel (stdin, stdout, or stderr)
manpages/accept4.2.html
accept4(2) - accept a connection on a socket (Man Page).....
The accept() system call is used with connection-based socket types (SOCK_STREAM, SOCK_SEQPACKET). It extracts the first connection request on the queue of pend
manpages/amavisd-milter.8.html
amavisd-milter(8) - sendmail milter for amavisd-new.........
The amavisd-milter is a sendmail milter (mail filter) for amavisd-new 2.4.3 and above and sendmail 8.13 and above (limited support for 8.12 is provided). Instea
manpages/dfutool.1.html
dfutool(1) - Device Firmware Upgrade utility (Man Page).....
dfutool is used to verify, archive and upgrade firmware files. OPTIONS -h Gives a list of possible commands. -d <device> The command specifies the device to use
manpages/getwc_unlocked.3.html
getwc_unlocked(3) - nonlocking stdio functions (Man Page)...
Each of these functions has the same behavior as its counterpart without the _unlocked suffix, except that they do not use locking (they do not set locks themse
manpages/pcre32_config.3.html
pcre32_config(3) Perl-compatible regular expressions........
This function makes it possible for a client program to find out which optional features are available in the version of the PCRE library it is using. The argum
manpages/gnutls_db_check_entry.3.html
gnutls_db_check_entry(3) - API function - Linux manual page
Check if database entry has expired. This function is to be used when you want to clear unnesessary session which occupy space in your backend. RETURNS Returns
manpages/avahi-daemon.conf.5.html
avahi-daemon.conf(5) - avahi-daemon configuration file......
avahi-daemon.conf is the configuration file for avahi-daemon. SECTION [SERVER] host-name= Set the host name avahi-daemon tries to register on the LAN. If omited
manpages/curl_formget.3.html
curl_formget(3) - serialize a previously built multipart/for
curl_formget() is used to serialize data previously built/appended with curl_formadd(3). Accepts a void pointer as second argument named userp which will be pas
