Reimplemented from OglGui::CrossControl. Definition at line 46 of file CameraMoveControl.h. References CAMMOVE_BW, CAMMOVE_DOWN, CAMMOVE_FW, CAMMOVE_LEFT, CAMMOVE_RIGHT, CAMMOVE_UP, OglGui::OglWindow::GetOGLWND(), mCamMove, OglGui::CrossControl::mResetButton, OglGui::CrossControl::mTargetWnd, and Impala::Application::DemoCamera2d::oglWnd. 00047 { 00048 if (!mTargetWnd) 00049 return; 00050 OGLWND* oglWnd = mTargetWnd->GetOGLWND(); 00051 if (userData == (void*)CAMMOVE_FW) 00052 view3DSys.KeyFunc(oglWnd, mCamMove?oglPAGEUP:oglPAGEDOWN, 0); 00053 if (userData == (void*)CAMMOVE_BW) 00054 view3DSys.KeyFunc(oglWnd, mCamMove?oglPAGEDOWN:oglPAGEUP, 0); 00055 if (userData == (void*)CAMMOVE_LEFT) 00056 view3DSys.KeyFunc(oglWnd, mCamMove?oglLEFT:oglRIGHT, 0); 00057 if (userData == (void*)CAMMOVE_RIGHT) 00058 view3DSys.KeyFunc(oglWnd, mCamMove?oglRIGHT:oglLEFT, 0); 00059 if (userData == (void*)CAMMOVE_UP) 00060 view3DSys.KeyFunc(oglWnd, mCamMove?oglUP:oglDOWN, 0); 00061 if (userData == (void*)CAMMOVE_DOWN) 00062 view3DSys.KeyFunc(oglWnd, mCamMove?oglDOWN:oglUP, 0); 00063 00064 if (src==mResetButton) 00065 view3DSys.KeyFunc(oglWnd, oglHOME, 0); 00066 }
Here is the call graph for this function:
|