1XkbSASetPtrDfltValue(3) XKB FUNCTIONS XkbSASetPtrDfltValue(3)
2
3
4
6 XkbSASetPtrDfltValue - Sets the valueXXX field of act from val
7
9 void XkbSASetPtrDfltValue (XkbAction act, int val);
10
12 - act action in which to set valueXXX
13
14 - val value to set in valueXXX
15
17 Actions associated with the XkbPtrDfltAction structure change the
18 mk_dflt_btn attribute of the MouseKeys control.
19
20 If the MouseKeys control is not enabled, KeyPress and KeyRelease events
21 are treated as though the action is XkbSA_NoAction. Otherwise, this
22 action changes the mk_dflt_btn attribute of the MouseKeys control.
23
24 The type field of the XkbPtrDfltAction structure should always be
25 XkbSA_SetPtrDflt.
26
27 The flags field is composed of the bitwise inclusive OR of the values
28 shown in Table 1 (currently there is only one value defined).
29
30
31 Table 1 Pointer Default Flags
32 ─────────────────────────────────────────────────────────────────
33 Flag Meaning
34 ─────────────────────────────────────────────────────────────────
35 XkbSA_DfltBtnAbsolute If set, the value field represents an
36 absolute pointer button. Otherwise, the
37 value field represents the amount to be
38 added to the current default button.
39
40 The affect field specifies what changes as a result of this action. The
41 only valid value for the affect field is XkbSA_AffectDfltBtn.
42
43 The valueXXX field is a signed character that represents the new button
44 value for the mk_dflt_btn attribute of the MouseKeys control. If
45 XkbSA_DfltBtnAbsolute is set in flags, valueXXX specifies the button to
46 be used; otherwise, valueXXX specifies the amount to be added to the
47 current default button. In either case, illegal button choices are
48 wrapped back around into range. Xkb provides macros, to convert between
49 the integer and signed character values in XkbPtrDfltAction structures.
50
52 typedef struct _XkbPtrDfltAction {
53 unsigned char type; /∗ XkbSA_SetPtrDflt */
54 unsigned char flags; /∗ controls the pointer button number */
55 unsigned char affect; /∗ XkbSA_AffectDfltBtn */
56 char valueXXX; /∗ new default button member */
57 } XkbPtrDfltAction;
58
59
60
61
62X Version 11 libX11 1.6.7 XkbSASetPtrDfltValue(3)