1XkbSARedirectSetVMods(3)         XKB FUNCTIONS        XkbSARedirectSetVMods(3)
2
3
4

NAME

6       XkbSARedirectSetVMods - Sets the vmods0 and vmods1 of act from v
7

SYNOPSIS

9       void XkbSARedirectSetVMods (XkbRedirectKeyAction act, unsigned int v);
10

ARGUMENTS

12       - act  action in which to set vmods
13
14       - v    new value for virtual modifiers
15

DESCRIPTION

17       Actions  associated  with  the  XkbRedirectKeyAction structure generate
18       KeyPress and KeyRelease events containing a keycode different from  the
19       key that was pressed or released.
20
21       The  type field for the XkbRedirectKeyAction structure should always be
22       XkbSA_RedirectKey.  Key presses cause a  KeyPress  event  for  the  key
23       specified  by  the  new_key  field instead of the actual key. The state
24       reported in this event reports the current effective modifiers  changed
25       as  follows: any real modifiers selected by the mods_mask field are set
26       to corresponding values from the mods field. Any real  modifiers  bound
27       to  the  virtual modifiers specified by the vmods_mask0 and vmods_mask1
28       fields are either set or cleared, depending on the corresponding values
29       in the vmods0 and vmods1 fields. If the real and virtual modifier defi‐
30       nitions specify conflicting values for a single modifier, the real mod‐
31       ifier definition has priority.
32
33       Key  releases  cause  a  KeyRelease  event for the key specified by the
34       new_key field instead of the actual key. The state for this event  con‐
35       sists  of  the effective keyboard modifiers at the time of the release,
36       changed as described previously.
37
38       The XkbSA_RedirectKey action normally redirects to another key  on  the
39       same  device  as the key that caused the event, unless that device does
40       not belong to the input extension KeyClass, in which case  this  action
41       causes an event on the core keyboard device. (The input extension cate‐
42       gorizes devices by breaking them into  classes.  Keyboards,  and  other
43       input  devices  with  keys,  are  classified as KeyClass devices by the
44       input extension.)
45
46       The  vmods_mask0  and  vmods_mask1  fields   actually   represent   one
47       vmods_mask  value.  Xkb provides macros to convert between the two for‐
48       mats.
49
50
51       XkbSARedirectSetVModsMask sets the vmods0 and vmods1 of act from v.
52

STRUCTURES

54           typedef struct_XkbRedirectKeyAction {
55               unsigned char   type;        /∗ XkbSA_RedirectKey */
56               unsigned char   new_key;     /∗ keycode to be put in event */
57               unsigned char   mods_mask;   /∗ mask of real mods to be reset */
58               unsigned char   mods;        /∗ mask of real mods to take values from */
59               unsigned char   vmods_mask0; /∗ first half of mask of virtual mods to be reset */
60               unsigned char   vmods_mask1; /∗ other half of mask of virtual mods to be reset */
61               unsigned char   vmods0;      /∗ first half of mask of virtual mods to take values from */
62               unsigned char   vmods1;      /∗ other half of mask of virtual mods to take values from */
63           } XkbRedirectKeyAction;
64
65
66
67
68X Version 11                     libX11 1.6.12        XkbSARedirectSetVMods(3)
Impressum