summaryrefslogtreecommitdiff
path: root/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
diff options
context:
space:
mode:
authorGravatar german2021-02-03 12:34:25 -0600
committerGravatar german2021-02-07 20:31:58 -0600
commit52b79ac00965aaf10db1a181067c2f2d33125171 (patch)
tree52ebd5133ac802db77e03d988dced834c833936e /src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
parentMerge pull request #5885 from MerryMage/ring_buffer-granularity (diff)
downloadyuzu-52b79ac00965aaf10db1a181067c2f2d33125171.tar.gz
yuzu-52b79ac00965aaf10db1a181067c2f2d33125171.tar.xz
yuzu-52b79ac00965aaf10db1a181067c2f2d33125171.zip
Add mouse panning
Diffstat (limited to 'src/yuzu_cmd/emu_window/emu_window_sdl2.cpp')
-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() {
30 30
31void EmuWindow_SDL2::OnMouseMotion(s32 x, s32 y) { 31void EmuWindow_SDL2::OnMouseMotion(s32 x, s32 y) {
32 TouchMoved((unsigned)std::max(x, 0), (unsigned)std::max(y, 0), 0); 32 TouchMoved((unsigned)std::max(x, 0), (unsigned)std::max(y, 0), 0);
33 input_subsystem->GetMouse()->MouseMove(x, y); 33
34 input_subsystem->GetMouse()->MouseMove(x, y, 0, 0);
34} 35}
35 36
36void EmuWindow_SDL2::OnMouseButton(u32 button, u8 state, s32 x, s32 y) { 37void EmuWindow_SDL2::OnMouseButton(u32 button, u8 state, s32 x, s32 y) {