summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgerman <german@thesoftwareartisans.com>2020-11-10 17:38:15 +0100
committergerman <german@thesoftwareartisans.com>2020-11-10 17:38:15 +0100
commitf5110340e65d6e68dad4d0cece82d4ae7cc8988f (patch)
tree0805afb9c038b2db4d0eca55394d5fb9371183e2
parentAllow to dial any angle with digital joystick (diff)
downloadyuzu-f5110340e65d6e68dad4d0cece82d4ae7cc8988f.tar
yuzu-f5110340e65d6e68dad4d0cece82d4ae7cc8988f.tar.gz
yuzu-f5110340e65d6e68dad4d0cece82d4ae7cc8988f.tar.bz2
yuzu-f5110340e65d6e68dad4d0cece82d4ae7cc8988f.tar.lz
yuzu-f5110340e65d6e68dad4d0cece82d4ae7cc8988f.tar.xz
yuzu-f5110340e65d6e68dad4d0cece82d4ae7cc8988f.tar.zst
yuzu-f5110340e65d6e68dad4d0cece82d4ae7cc8988f.zip
-rwxr-xr-xsrc/input_common/analog_from_button.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_common/analog_from_button.cpp b/src/input_common/analog_from_button.cpp
index 71a2e4031..d748c1c04 100755
--- a/src/input_common/analog_from_button.cpp
+++ b/src/input_common/analog_from_button.cpp
@@ -46,7 +46,7 @@ public:
angle += TAU;
}
} else if ((angle >= bottom_limit && angle < to_angle) ||
- (angle - TAU >= bottom_limit && angle - TAU < to_angle)) {
+ (angle - TAU >= bottom_limit && angle - TAU < to_angle)) {
angle += modifier_angle;
if (angle >= TAU) {
angle -= TAU;