Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 25, 2009, 8:02:22 PM (14 years ago)
Author:
rgrieder
Message:

Fixed mouse position problem: Internal value could still be larger than 1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/libraries/core/input/KeyBinder.h

    r5929 r6155  
    138138        std::vector<BufferedParamCommand*> paramCommandBuffer_;
    139139
    140         //! Keeps track of the absolute mouse value (incl. scroll wheel)
    141         int mousePosition_[2];
     140        //! Keeps track of the absolute mouse value
     141        float mousePosition_[2];
    142142        //! Used to derive mouse input if requested
    143143        int mouseRelative_[2];
     
    165165        //! mouse sensitivity if mouse input is derived
    166166        float mouseSensitivityDerived_;
    167         //! Equals one step of the mousewheel
     167        //! Equals one step of the mouse wheel
    168168        int mouseWheelStepSize_;
     169
     170        //! Multiplication of mouse sensitivity and clipping size
     171        float totalMouseSensitivity_;
    169172
    170173        //##### Constant config variables #####
Note: See TracChangeset for help on using the changeset viewer.