summaryrefslogtreecommitdiffstats
path: root/src/input_common/input_mapping.cpp
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2023-02-22 04:46:42 +0100
committerNarr the Reg <juangerman-13@hotmail.com>2023-02-22 04:55:22 +0100
commit673accd630be88fde4b6b748608a9c3bc42ea60f (patch)
tree72c5d94eb0ee9b260e3a2e1c1514a515388e8f41 /src/input_common/input_mapping.cpp
parentMerge pull request #9847 from german77/timeout (diff)
downloadyuzu-673accd630be88fde4b6b748608a9c3bc42ea60f.tar
yuzu-673accd630be88fde4b6b748608a9c3bc42ea60f.tar.gz
yuzu-673accd630be88fde4b6b748608a9c3bc42ea60f.tar.bz2
yuzu-673accd630be88fde4b6b748608a9c3bc42ea60f.tar.lz
yuzu-673accd630be88fde4b6b748608a9c3bc42ea60f.tar.xz
yuzu-673accd630be88fde4b6b748608a9c3bc42ea60f.tar.zst
yuzu-673accd630be88fde4b6b748608a9c3bc42ea60f.zip
Diffstat (limited to '')
-rw-r--r--src/input_common/input_mapping.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/input_common/input_mapping.cpp b/src/input_common/input_mapping.cpp
index 6990a86b9..2ff480ff9 100644
--- a/src/input_common/input_mapping.cpp
+++ b/src/input_common/input_mapping.cpp
@@ -142,14 +142,10 @@ void MappingFactory::RegisterMotion(const MappingData& data) {
new_input.Set("port", static_cast<int>(data.pad.port));
new_input.Set("pad", static_cast<int>(data.pad.pad));
- // If engine is mouse map the mouse position as 3 axis motion
+ // If engine is mouse map it automatically to mouse motion
if (data.engine == "mouse") {
- new_input.Set("axis_x", 1);
- new_input.Set("invert_x", "-");
- new_input.Set("axis_y", 0);
- new_input.Set("axis_z", 4);
- new_input.Set("range", 1.0f);
- new_input.Set("deadzone", 0.0f);
+ new_input.Set("motion", 0);
+ new_input.Set("pad", 1);
input_queue.Push(new_input);
return;
}