Example #1
0
void GlobalCameraManager::onFreelookMoveDownKey(ui::KeyEventType eventType)
{
	CamWndPtr camWnd = getActiveCamWnd();
	if (camWnd == NULL) return;

	if (eventType == ui::KeyPressed)
	{
		camWnd->getCamera().setMovementFlags(MOVE_DOWN);
	}
	else
	{
		camWnd->getCamera().clearMovementFlags(MOVE_DOWN);
	}
}
Example #2
0
void GlobalCameraManager::pitchDownDiscrete(const cmd::ArgumentList& args) {
	CamWndPtr camWnd = getActiveCamWnd();
	if (camWnd == NULL) return;

	camWnd->getCamera().pitchDownDiscrete();
}