Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATControl::OnKeyDown
void CATControl::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 in CATKnob, and CATSlider.

Definition at line 845 of file CATControl.cpp.

References fActive, fPressed, CATKeystroke::GetNormalKey(), and CATWidget::MarkDirty().

Referenced by CATWindow::OnKeyDown(), CATSlider::OnKeyDown(), and CATKnob::OnKeyDown().


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