Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATKnob::OnMouseWheel
void CATKnob::OnMouseWheel ( const CATPOINT point,
CATFloat32  wheelMove,
CATMODKEY  modKey 
) [virtual]

OnMouseWheel() is called when the mouse wheel is moved over control, but the mouse is not already tracked - this is the usual case.

The mouse wheel movement is set to where each 'notch' should be about 1.0 coming in from the OS. Positive values are 'up' or away from the user, negative values are down or towards the user.

Parameters:
point - location of the mouse pointer when the wheel is moved
wheelMove - distance moved
modKey - Key state modifiers for ctrl/shift/alt/etc.

Reimplemented from CATControl.

Definition at line 197 of file CATKnob.cpp.

References CATControl::BoundsCheckValue(), CATMODKEY_SHIFT, CATControl::fValue, CATControl::GetValRange(), kKNOBSTEP, CATWidget::MarkDirty(), and CATControl::OnMouseClick().


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