void Mouse(int button, int mouseState, int x, int y) { switch (state) { case MENU: menuManager.MousePress(button, mouseState, x, WINDOW_HEIGHT-y); break; case GAME: game->MousePress(button, mouseState, x, WINDOW_HEIGHT-y); break; } }