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

OnKeyPress() is called when a key is pressed, then released 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.

Use this functoin to receive keystrokes where you only want to respond to full key press/releases. You will not receive repeated calls if the key is held

Parameters:
keystroke - the key that was pressed

Reimplemented in CATKnob, and CATSlider.

Definition at line 869 of file CATControl.cpp.

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


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