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

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


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