Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATKnob::OnKeyDown
void CATKnob::OnKeyDown ( const CATKeystroke keystroke  )  [virtual]

OnKeyDown() is called when a key is depressed and the control has focus.

The key may be a standard key, or it may be one of the special keys - see CATKeystroke.h for details.

For most keys, you'll want to trap them here - that way you will receive repeats and such. However, if you want just full key press/releases, use OnKeyPress() instead.

Parameters:
keystroke - the key that was pressed
See also:
OnKeyUp(), OnKeyPress()

Reimplemented from CATControl.

Definition at line 217 of file CATKnob.cpp.

References CATControl::BoundsCheckValue(), CATKEY_DOWN, CATKEY_END, CATKEY_HOME, CATKEY_LEFT, CATKEY_NEXT, CATKEY_PRIOR, CATKEY_RIGHT, CATKEY_UP, CATControl::fMaxValue, CATControl::fMinValue, CATControl::fValue, CATKeystroke::GetSpecialKey(), CATControl::GetValRange(), CATKeystroke::IsSpecial(), kKNOBSTEP, CATWidget::MarkDirty(), CATControl::OnKeyDown(), and CATControl::OnMouseClick().


Generated on Mon Feb 11 04:10:40 2008 for Game Accessibility Suite by doxygen 1.5.4