25 enum KeyboardModifiers
27 KeyboardModifierNone = 0,
28 KeyboardModifierAlt = 1,
29 KeyboardModifierControl = 2,
30 KeyboardModifierShift = 4
35 MouseInputAction action;
36 u32 keyboardModifiers;
42 MouseInputAction mouseInputAction,
43 u32 keyboardModifiers,
47 : action(mouseInputAction)
48 , keyboardModifiers(keyboardModifiers)
56 bool IsAltDown()
const {
return (keyboardModifiers & KeyboardModifierAlt) != 0; }
57 bool IsShiftDown()
const {
return (keyboardModifiers & KeyboardModifierShift) != 0; }
58 bool IsControlDown()
const {
return (keyboardModifiers & KeyboardModifierControl) != 0; }