27 enum KeyboardModifiers
29 KeyboardModifierNone = 0,
30 KeyboardModifierAlt = 1,
31 KeyboardModifierControl = 2,
32 KeyboardModifierShift = 4
46 MouseInputAction action;
47 u32 keyboardModifiers;
53 MouseInputAction mouseInputAction,
54 u32 keyboardModifiers,
58 : action(mouseInputAction)
59 , keyboardModifiers(keyboardModifiers)
67 bool IsAltDown()
const {
return (keyboardModifiers & KeyboardModifierAlt) != 0; }
68 bool IsShiftDown()
const {
return (keyboardModifiers & KeyboardModifierShift) != 0; }
69 bool IsControlDown()
const {
return (keyboardModifiers & KeyboardModifierControl) != 0; }
88 TouchInputAction action;
89 std::vector<TouchInputPoint> touches;
91 int GetFirstChangedIndex()
const
93 for (
int i=0; i<touches.size(); ++i)
95 if (touches[i].changed)