diff options
| author | bunnei <bunneidev@gmail.com> | 2021-03-08 14:50:58 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-08 14:50:58 -0800 |
| commit | 9c4c9f1e7df65d74fed156c1788f48df6424e917 (patch) | |
| tree | e04abbe4824d77458205596ad27f28816c38e597 /src/yuzu_cmd/emu_window/emu_window_sdl2.h | |
| parent | 69ce5e41ebd266b2cd04cb609663eaca21c8ded9 (diff) | |
| parent | 4738e14cb052a44c53e47379e595f00cef034dca (diff) | |
Merge pull request #5990 from german77/mousePanningV2
InputCommon: Mouse fixes
Diffstat (limited to 'src/yuzu_cmd/emu_window/emu_window_sdl2.h')
| -rw-r--r-- | src/yuzu_cmd/emu_window/emu_window_sdl2.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2.h b/src/yuzu_cmd/emu_window/emu_window_sdl2.h index 51a12a6a9..0e17bbca7 100644 --- a/src/yuzu_cmd/emu_window/emu_window_sdl2.h +++ b/src/yuzu_cmd/emu_window/emu_window_sdl2.h @@ -18,6 +18,10 @@ namespace InputCommon { class InputSubsystem; } +namespace MouseInput { +enum class MouseButton; +} + class EmuWindow_SDL2 : public Core::Frontend::EmuWindow { public: explicit EmuWindow_SDL2(InputCommon::InputSubsystem* input_subsystem); @@ -42,6 +46,9 @@ protected: /// Called by WaitEvent when the mouse moves. void OnMouseMotion(s32 x, s32 y); + /// Converts a SDL mouse button into MouseInput mouse button + MouseInput::MouseButton SDLButtonToMouseButton(u32 button) const; + /// Called by WaitEvent when a mouse button is pressed or released void OnMouseButton(u32 button, u8 state, s32 x, s32 y); |
