diff options
Diffstat (limited to 'proto-vjoystick')
| -rw-r--r-- | proto-vjoystick/vjoystick.cpp | 10 | ||||
| -rw-r--r-- | proto-vjoystick/vjoystick.h | 10 | 
2 files changed, 9 insertions, 11 deletions
| diff --git a/proto-vjoystick/vjoystick.cpp b/proto-vjoystick/vjoystick.cpp index 73cf74c6..e5e18157 100644 --- a/proto-vjoystick/vjoystick.cpp +++ b/proto-vjoystick/vjoystick.cpp @@ -39,7 +39,15 @@ const unsigned char handle::axis_ids[6] =  //    HID_USAGE_WHL,  }; -constexpr double handle::val_minmax[6]; +static const double val_minmax[6] = +{ +    50, +    50, +    50, +    180, +    180, +    180 +};  void handle::init()  { diff --git a/proto-vjoystick/vjoystick.h b/proto-vjoystick/vjoystick.h index 6469a4e6..72dde0f0 100644 --- a/proto-vjoystick/vjoystick.h +++ b/proto-vjoystick/vjoystick.h @@ -30,16 +30,6 @@ private:      LONG axis_min[6];      LONG axis_max[6]; -    static constexpr double val_minmax[6] = -    { -        50, -        50, -        50, -        180, -        180, -        180 -    }; -      void init();  public:      handle(); | 
