Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATSlider::OnKeyDown
void CATSlider::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 189 of file CATSlider.cpp.

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


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