summaryrefslogtreecommitdiffstats
path: root/src/yuzu_cmd/emu_window
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-02-11 18:58:23 +0100
committerGitHub <noreply@github.com>2021-02-11 18:58:23 +0100
commite53b6ecc76cf8fe670e5056f75d8e798da66f9ff (patch)
tree21c0ed620d025fa8ab30465c83dfe57e4888816b /src/yuzu_cmd/emu_window
parentMerge pull request #5908 from Morph1984/swkbd-finalize (diff)
parentAdd mouse panning (diff)
downloadyuzu-e53b6ecc76cf8fe670e5056f75d8e798da66f9ff.tar
yuzu-e53b6ecc76cf8fe670e5056f75d8e798da66f9ff.tar.gz
yuzu-e53b6ecc76cf8fe670e5056f75d8e798da66f9ff.tar.bz2
yuzu-e53b6ecc76cf8fe670e5056f75d8e798da66f9ff.tar.lz
yuzu-e53b6ecc76cf8fe670e5056f75d8e798da66f9ff.tar.xz
yuzu-e53b6ecc76cf8fe670e5056f75d8e798da66f9ff.tar.zst
yuzu-e53b6ecc76cf8fe670e5056f75d8e798da66f9ff.zip
Diffstat (limited to 'src/yuzu_cmd/emu_window')
-rw-r--r--src/yuzu_cmd/emu_window/emu_window_sdl2.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
index 7843d5167..39841aa28 100644
--- a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
+++ b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
@@ -30,7 +30,8 @@ EmuWindow_SDL2::~EmuWindow_SDL2() {
void EmuWindow_SDL2::OnMouseMotion(s32 x, s32 y) {
TouchMoved((unsigned)std::max(x, 0), (unsigned)std::max(y, 0), 0);
- input_subsystem->GetMouse()->MouseMove(x, y);
+
+ input_subsystem->GetMouse()->MouseMove(x, y, 0, 0);
}
void EmuWindow_SDL2::OnMouseButton(u32 button, u8 state, s32 x, s32 y) {