MCPcopy Create free account
hub / github.com/clementgallet/libTAS / get_modifiers

Method get_modifiers

src/program/KeyMappingXcb.cpp:111–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111keysym_t KeyMappingXcb::get_modifiers(int state)
112{
113 keysym_t modifiers = 0;
114 if (state & XCB_MOD_MASK_SHIFT)
115 modifiers |= XK_Shift_Flag;
116 if (state & XCB_MOD_MASK_CONTROL)
117 modifiers |= XK_Control_Flag;
118 if (state & XCB_MOD_MASK_1)
119 modifiers |= XK_Alt_Flag;
120 if (state & XCB_MOD_MASK_3)
121 modifiers |= XK_Meta_Flag;
122
123 return modifiers;
124}
125
126keysym_t KeyMappingXcb::build_modifiers(unsigned char keyboard_state[])
127{

Callers 1

nextEventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected