18 #ifndef EQFABRIC_EVENTENUMS_H 19 #define EQFABRIC_EVENTENUMS_H 22 #include <lunchbox/bitOperation.h> 23 #include <lunchbox/types.h> 90 PTR_BUTTON_NONE = LB_BIT_NONE,
91 PTR_BUTTON1 = LB_BIT1,
92 PTR_BUTTON2 = LB_BIT2,
93 PTR_BUTTON3 = LB_BIT3,
94 PTR_BUTTON4 = LB_BIT4,
95 PTR_BUTTON5 = LB_BIT5,
96 PTR_BUTTON6 = LB_BIT6,
104 enum class KeyModifier : unsigned
110 all = LB_BIT1 | LB_BIT2 | LB_BIT3,
113 inline KeyModifier operator&(
const KeyModifier l,
const KeyModifier r)
115 return static_cast<KeyModifier
>(
static_cast<unsigned>(l) &
116 static_cast<unsigned>(r));
119 inline KeyModifier operator|(
const KeyModifier l,
const KeyModifier r)
121 return static_cast<KeyModifier
>(
static_cast<unsigned>(l) |
122 static_cast<unsigned>(r));
125 inline KeyModifier& operator|=(KeyModifier& l,
const KeyModifier r)
130 inline std::ostream&
operator<<(std::ostream& os,
const KeyModifier mod)
132 if ((mod & KeyModifier::alt) == KeyModifier::alt)
134 if ((mod & KeyModifier::control) == KeyModifier::control)
136 if ((mod & KeyModifier::shift) == KeyModifier::shift)
144 #endif // EQFABRIC_EVENTENUMS_H The Equalizer client library.
std::ostream & operator<<(std::ostream &os, const AxisEvent &event)
Print the axis event to the given output stream.