Definition at line 319 of file CheckBoxDrum.h. References ChangeCheckBoxSize(), OglGui::Window::KeyboardFunc(), mDrumRotDx, mDrumRotX, mKeyInfo, OglGui::OglWindow::mOglWnd, mRadius, and mTxt3D. 00320 { 00321 INT shiftDown = state & oglShift; 00322 FLOAT add = shiftDown ? -0.01f : 0.01f; 00323 00324 if( c == 'W' || c == 'w' ) 00325 ChangeCheckBoxSize( (c=='W') ? 0.04:-0.04f, 0.f); 00326 else if( c == 'H' || c == 'h' ) 00327 ChangeCheckBoxSize( 0.f, (c=='H') ? 0.04:-0.04f); 00328 else 00329 Window::KeyboardFunc( c, state ); 00330 00331 if( c == 'i' ) 00332 mKeyInfo = !mKeyInfo; 00333 00334 if( c == 'R' || c == 'r' ) // Radius of Drum 00335 mRadius += (c=='R') ? 0.2f : -0.2f; 00336 00337 if( c == oglESC ) // Reset: Set rotation and rotation speed to zero 00338 mDrumRotDx = mDrumRotX = 0.0f; 00339 00340 if( c == oglCTRL('x') && (mDrumRotDx += add) ) oglSys.SetAlwaysDraw( mOglWnd, 1 ); 00341 00342 if( c == '3' ) mTxt3D = !mTxt3D; 00343 00344 if( c == '#' ) // Pauze/continue 00345 oglSys.SetAlwaysDraw( mOglWnd, !oglSys.GetAlwaysDraw(mOglWnd) ); 00346 00347 oglSys.UpdateSceneFlag( mOglWnd, 1 ); 00348 }
Here is the call graph for this function:
|