Esempio n. 1
0
 static void log(bool isCaught, Buttons buttons, int dx, int dy) {
   IOLOG_DEBUG_POINTING("RelativePointerEventCallBack [%7s]: buttons: 0x%08x, dx: %3d, dy: %3d\n",
                        isCaught ? "caught" : "sending",
                        buttons.get(), dx, dy);
 }
Esempio n. 2
0
 Buttons operator|(Buttons other) const { return value_ | other.get(); }
Esempio n. 3
0
 bool isOn(Buttons buttons) const {
   return (value_ & buttons.get()) == buttons.get();
 }
Esempio n. 4
0
 bool operator==(Buttons other) const { return value_ == other.get(); }