Exemple #1
0
void Mouse::PullEvent(cinder::app::MouseEvent event) {
  left.isPull = event.isLeft() ? true : false;
  right.isPull = event.isRight() ? true : false;

  left.isPress  = false;
  right.isPress = false;
}
Exemple #2
0
void Mouse::PushEvent(cinder::app::MouseEvent event) {
  left.isPush   = event.isLeftDown();
  left.isPress  = event.isLeft();
  right.isPush  = event.isRightDown();
  right.isPress = event.isRight();
}