diff options
author | Subv <subv2112@gmail.com> | 2016-11-29 22:51:53 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2016-11-29 22:51:53 +0100 |
commit | aea9a91100e4b80edc8c70d610c102eb2d76dd1f (patch) | |
tree | a0258781fb72ee27758442eff3d6b6634cf3b1ee /src/common | |
parent | Merge pull request #2196 from Subv/system_mode (diff) | |
download | yuzu-aea9a91100e4b80edc8c70d610c102eb2d76dd1f.tar yuzu-aea9a91100e4b80edc8c70d610c102eb2d76dd1f.tar.gz yuzu-aea9a91100e4b80edc8c70d610c102eb2d76dd1f.tar.bz2 yuzu-aea9a91100e4b80edc8c70d610c102eb2d76dd1f.tar.lz yuzu-aea9a91100e4b80edc8c70d610c102eb2d76dd1f.tar.xz yuzu-aea9a91100e4b80edc8c70d610c102eb2d76dd1f.tar.zst yuzu-aea9a91100e4b80edc8c70d610c102eb2d76dd1f.zip |
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/key_map.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/key_map.cpp b/src/common/key_map.cpp index 79b3fcb18..97cafe9c9 100644 --- a/src/common/key_map.cpp +++ b/src/common/key_map.cpp @@ -49,7 +49,7 @@ static bool circle_pad_right = false; static bool circle_pad_modifier = false; static void UpdateCirclePad(EmuWindow& emu_window) { - constexpr float SQRT_HALF = 0.707106781; + constexpr float SQRT_HALF = 0.707106781f; int x = 0, y = 0; if (circle_pad_right) @@ -61,9 +61,9 @@ static void UpdateCirclePad(EmuWindow& emu_window) { if (circle_pad_down) --y; - float modifier = circle_pad_modifier ? Settings::values.pad_circle_modifier_scale : 1.0; - emu_window.CirclePadUpdated(x * modifier * (y == 0 ? 1.0 : SQRT_HALF), - y * modifier * (x == 0 ? 1.0 : SQRT_HALF)); + float modifier = circle_pad_modifier ? Settings::values.pad_circle_modifier_scale : 1.0f; + emu_window.CirclePadUpdated(x * modifier * (y == 0 ? 1.0f : SQRT_HALF), + y * modifier * (x == 0 ? 1.0f : SQRT_HALF)); } int NewDeviceId() { |