提交 8328e4c2 编写于 作者: Y YueBiang 提交者: Gitee

旋转表冠方向修改

上级 9a8becf9
......@@ -357,7 +357,7 @@ private:
int32_t CalculateCurrentValue(int16_t length, int16_t totalLength);
int32_t UpdateCurrentValue(const Point& knobPosition);
#if ENABLE_ROTATE_INPUT
static constexpr int8_t DEFAULT_ROTATE_FACTOR = 1;
static constexpr int8_t DEFAULT_ROTATE_FACTOR = -1;
int8_t rotateFactor_ = DEFAULT_ROTATE_FACTOR;
#endif
UISliderEventListener* listener_;
......
......@@ -57,7 +57,7 @@ public:
* @since 5.0
* @version 3.0
*/
RotateEvent(int16_t rotate) : rotate_(-rotate * ROTATE_SENSITIVITY) {} // Rotation direction
RotateEvent(int16_t rotate) : rotate_(rotate * ROTATE_SENSITIVITY) {} // Rotation direction
~RotateEvent() {};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册