1XkbPtrActionY(3) XKB FUNCTIONS XkbPtrActionY(3)
2
3
4
6 XkbPtrActionY - Returns the high_YYY and low_YYY fields of act con‐
7 verted to a signed int
8
10 int XkbPtrActionY (XkbPtrAction act);
11
13 - act action from which to extract Y
14
16 Actions associated with the XkbPtrAction structure move the pointer
17 when keys are pressed and released.
18
19 If the MouseKeys control is not enabled, KeyPress and KeyRelease events
20 are treated as though the action is XkbSA_NoAction.
21
22 If the MouseKeys control is enabled, a server action of type
23 XkbSA_MovePtr instructs the server to generate core pointer MotionNo‐
24 tify events rather than the usual KeyPress event, and the corresponding
25 KeyRelease event disables any mouse keys timers that were created as a
26 result of handling the XkbSA_MovePtr action.
27
28 The type field of the XkbPtrAction structure is always XkbSA_MovePtr.
29
30 The flags field is a bitwise inclusive OR of the masks shown in Table
31 1.
32
33
34 Table 1 Pointer Action Types
35 ────────────────────────────────────────────────────────────────
36 Action Type Meaning
37 ────────────────────────────────────────────────────────────────
38 XkbSA_NoAcceleration If not set, and the MouseKeysAccel con‐
39 trol is enabled, the KeyPress initiates
40 a mouse keys timer for this key; every
41 time the timer expires, the cursor
42 moves.
43 XkbSA_MoveAbsoluteX If set, the X portion of the structure
44 specifies the new pointer X coordinate.
45 Otherwise, the X portion is added to the
46 current pointer X coordinate to deter‐
47 mine the new pointer X coordinate.
48 XkbSA_MoveAbsoluteY If set, the Y portion of the structure
49 specifies the new pointer Y coordinate.
50 Otherwise, the Y portion is added to the
51 current pointer Y coordinate to deter‐
52 mine the new pointer Y coordinate.
53
54 Each of the X and Y coordinates of the XkbPtrAction structure is com‐
55 posed of two signed 16-bit values, that is, the X coordinate is com‐
56 posed of high_XXX and low_XXX, and similarly for the Y coordinate. Xkb
57 provides the following macros, to convert between a signed integer and
58 two signed 16-bit values in XkbPtrAction structures.
59
61 typedef struct _XkbPtrAction {
62 unsigned char type; /* XkbSA_MovePtr */
63 unsigned char flags; /* determines type of pointer motion */
64 unsigned char high_XXX; /* x coordinate, high bits*/
65 unsigned char low_XXX; /* y coordinate, low bits */
66 unsigned char high_YYY; /* x coordinate, high bits */
67 unsigned char low_YYY; /* y coordinate, low bits */
68 } XkbPtrAction;
69
70
71
72
73X Version 11 libX11 1.7.2 XkbPtrActionY(3)