Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATApp::OnCommand
void CATApp::OnCommand ( CATCommand command,
CATControl ctrl,
CATWindow wnd,
CATSkin skin 
) [virtual]

OnCommand() is called each time a command is received by the application.

Most often, commands will come up from the Skin from controls. Each time a button is clicked or a knob turned, for example.

The commands are a class, primarily containing a command string that the application should check to see if it supports. If so, the command should be performed.

Parameters:
command - the command to execute
ctrl - the control that sent the command, or 0
wnd - the window of the control, or 0
skin - the skin the command came from, or 0

App level commands

Reimplemented in GASPilot.

Definition at line 465 of file CATApp.cpp.

References CAT_SUCCESS, CATFAILED, CATString::Compare(), DisplayError(), CATCommand::GetCmdString(), and OnHelp().

Referenced by GASPilot::OnCommand(), and CATSkin::OnCommand().


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