Changeset 20973

Show
Ignore:
Timestamp:
12/31/07 13:11:39 (8 months ago)
Author:
patrick
Message:

Fixed compile errors.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/trunk/modules/gadgeteer/drivers/Microsoft/DirectXJoystick/DirectXJoystick.cpp

    r20970 r20973  
    206206      { 
    207207         mCurAxes[i].setTime(); 
    208          mCurAxes[i].setAnalog(mInputDrv.getAxisValue(i)); 
     208         const LONG cur_value(mInputDrv.getAxisValue(i)); 
     209         mCurAxes[i].setAnalog(cur_value); 
    209210 
    210211         // Check for axis buttons. If we have a mapping for axis #i, then we 
     
    222223            vprASSERT(low_btn_index < mCurButtons.size() && 
    223224                      "Virtual low button index out of range"); 
     225 
     226            // Get a normalized form of cur_value for axis button handling. 
     227            const float norm_value(normalize(cur_value)); 
    224228 
    225229            // Record the high button as pressed and the low button as not 
  • juggler/trunk/modules/gadgeteer/drivers/Open/LinuxJoydev/LinuxJoydev.cpp

    r20970 r20973  
    266266            vprASSERT(low_btn_index < mCurButtons.size() && 
    267267                      "Virtual low button index out of range"); 
     268 
     269            // Get a normalized form of the current value for axis button 
     270            // handling. 
     271            const float norm_value(normalize(cur_event.value)); 
    268272 
    269273            // Record the high button as pressed and the low button as not