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