Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

virtual void Impala::Visualization::VideoJpgPlayer::KeyboardFunc ( int  c,
int  state 
) [inline, virtual]

Reimplemented from OglGui::Window.

Definition at line 261 of file VideoJpgPlayer.h.

References OglGui::Window::KeyboardFunc(), mFitViewToWindow, mListener, mListenerData, mNoKeyboardCommands, mNormalSpeed, mScaleImageToView, NextFrame(), Impala::Visualization::VideoJpgPlayerListener::OnKey(), Play(), Reset(), and Stop().

00262     {
00263         if (!mNoKeyboardCommands)
00264         {
00265             if (c == 'p')
00266                 Play();
00267             if (c == 's')
00268                 Stop();
00269             if (c == oglHOME)
00270                 Reset();
00271             if (c == 'n')
00272                 mNormalSpeed = !mNormalSpeed;
00273             if (c == '+')
00274                 NextFrame(1);
00275             if (c == '-')
00276                 NextFrame(-1);
00277             if (c == 'S')
00278                 mScaleImageToView = !mScaleImageToView;
00279             if (c == 'F')
00280                 mFitViewToWindow = !mFitViewToWindow;
00281         }
00282         Window::KeyboardFunc(c, state);
00283         if (mListener)
00284             mListener->OnKey(this, c, state, mListenerData);
00285     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:25:23 2011 for ImpalaSrc by  doxygen 1.5.1