void ImGui_ImplCinder_MouseButtonCallback(ci::app::MouseEvent e, bool isDown)
{
    ImGui_ImplCinder_MouseState state = isDown ? MouseState_Pressed : MouseState_Released;
    if (e.isLeft())
        g_MousePressed[0] = state;
    else if (e.isRight())
        g_MousePressed[1] = state;
    else if (e.isMiddle())
        g_MousePressed[2] = state;
}
Exemplo n.º 2
0
Arquivo: Game.cpp Projeto: jettca/Aton
void Game::mouseUp(ci::app::MouseEvent e)
{
  int button;
  if (e.isLeft())
    button = Button::LEFT;
  else if (e.isRight())
    button = Button::RIGHT;
  else if (e.isMiddle())
    button = Button::MIDDLE;
  else
    return;

  mEngine.mouseEvent(false, button);
}