mirror of
https://github.com/Rosalie241/RMG.git
synced 2026-07-11 01:24:01 +02:00
RMG-Input: fix accuracy of stick movement in ControllerImageWidget.cpp
This commit is contained in:
@@ -173,8 +173,8 @@ void ControllerImageWidget::paintEvent(QPaintEvent *event)
|
||||
const double sensitivityFactor = this->sensitivityValue / 100.0;
|
||||
const double sensitivityAdjustedMaxOffset = absoluteMaxOffset * std::min(sensitivityFactor, 1.0);
|
||||
double offsetDeadzone = this->deadzoneValue * sensitivityFactor * offsetSlope;
|
||||
int offsetx = this->xAxisState * sensitivityFactor * offsetSlope;
|
||||
int offsety = this->yAxisState * sensitivityFactor * offsetSlope;
|
||||
double offsetx = this->xAxisState * sensitivityFactor * offsetSlope;
|
||||
double offsety = this->yAxisState * sensitivityFactor * offsetSlope;
|
||||
const double offsetDist = std::hypot(offsetx, offsety);
|
||||
|
||||
// take deadzone into account
|
||||
|
||||
Reference in New Issue
Block a user