XKB FUNCTIONS XkbSAPtrDfltValue(3x11)
NAME
XkbSAPtrDfltValue - Returns the valueXXX field of act con-
verted to a signed intSYNOPSIS
cc [ flag... ] file... -lX11 [ library... ]
int XkbSAPtrDfltValue (XkbAction act);
ARGUMENTS- act
action from which to extract groupDESCRIPTION
Actions associated with the XkbPtrDfltAction structurechange the mk_dflt_btn attribute of the MouseKeys control.
If the MouseKeys control is not enabled, KeyPress and KeyRelease events are treated as though the action isXkbSA_NoAction. Otherwise, this action changes the
mk_dflt_btn attribute of the MouseKeys control.
The type field of the XkbPtrDfltAction structure shouldalways be XkbSA_SetPtrDflt.
The flags field is composed of the bitwise inclusive OR of the values shown in Table 1 (currently there is only one value defined). Table 1 Pointer Default Flags________________________________________________________________
Flag Meaning________________________________________________________________
XkbSA_DfltBtnAbsolute If set, the value field represents an
absolute pointer button. Otherwise, the value field represents the amount to be added to the current default button. The affect field specifies what changes as a result of this action. The only valid value for the affect field isXkbSA_AffectDfltBtn.
The valueXXX field is a signed character that represents thenew button value for the mk_dflt_btn attribute of the Mouse-
Keys control. If XkbSA_DfltBtnAbsolute is set in flags,
valueXXX specifies the button to be used; otherwise, valueXXX specifies the amount to be added to the current default button. In either case, illegal button choices arewrapped back around into range. Xkb provides macros, to con-
vert between the integer and signed character values in XkbPtrDfltAction structures. X Version 11 Last change: libX11 1.3.5 1XKB FUNCTIONS XkbSAPtrDfltValue(3x11)
XkbSAPtrDfltValue returns the valueXXX field of act con-
verted to a signed int. STRUCTUREStypedef struct _XkbPtrDfltAction {
unsigned char type; /* XkbSA_SetPtrDflt */
unsigned char flags; /* controls the pointer button number */unsigned char affect; /* XkbSA_AffectDfltBtn */
char valueXXX; /* new default button member */ } XkbPtrDfltAction;ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Availability | x11/library/libx11 ||_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | See XInitThreads(3X11) |
|_____________________________|_____________________________|
X Version 11 Last change: libX11 1.3.5 2