Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ GetPointMpg(3X) — DeltaWindows 1.3.3 Release 4 Version 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

 

NAME

XGetPointerMapping — get the pointer button mapping. 

SYNOPSIS

int XGetPointerMapping(display, map_return, nmap) Display ∗display;  unsigned char map_return[];  int nmap;

ARGUMENTS

displaySpecifies a connection to an X server; returned from XOpenDisplay(). 

map_return
Returns the mapping list.  Array begins with map_return[]. 

nmapSpecifies the number of items in mapping list. 

RETURNS

The number of elements in the pointer list. 

DESCRIPTION

XGetPointerMapping() returns the current mapping of the pointer buttons.  Information is returned in both the arguments and the function’s return value.  map_return is an array of the numbers of the buttons as they are currently mapped.  Elements of the list are indexed starting from 1.  The nominal mapping for a pointer is the identity mapping: map_return[i]=i+1.  If map[2]=2, it means that the third physical button triggers the second logical button. 

nmap indicates the desired number of button mappings. 

The return value of the function is the actual number of elements in the pointer list, which may be greater or less than nmap. 

SEE ALSO

XChangeActivePointerGrab(), XChangePointerControl(), XGetPointerControl(), XGrabPointer(), XQueryPointer(), XSetPointerMapping(), XUngrabPointer(), XWarpPointer(). 

Xlib Reference Manual

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026