map_virtual_modifiers


Description:

[ Version ( since = "2.20" ) ]
public bool map_virtual_modifiers (ref ModifierType state)

Maps the virtual modifiers (i.

e. Super, Hyper and Meta) which are set in state to their non-virtual counterparts (i.e. Mod2, Mod3,...) and set the corresponding bits in state.

This function is useful when matching key events against accelerators.

Parameters:

this

a Keymap

state

pointer to the modifier state to map

Returns:

false if two virtual modifiers were mapped to the same non-virtual modifier. Note that false is also returned if a virtual modifier is mapped to a non-virtual modifier that was already set in state.