summaryrefslogtreecommitdiffstats
path: root/src/yuzu_cmd/emu_window/emu_window_sdl2.h
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2021-02-24 03:39:02 +0100
committergerman <german@thesoftwareartisans.com>2021-02-28 00:53:10 +0100
commit4738e14cb052a44c53e47379e595f00cef034dca (patch)
tree4264dd4e9d4a750951d1581241c484513c89b571 /src/yuzu_cmd/emu_window/emu_window_sdl2.h
parentMerge pull request #5944 from Morph1984/gc-vibrations (diff)
downloadyuzu-4738e14cb052a44c53e47379e595f00cef034dca.tar
yuzu-4738e14cb052a44c53e47379e595f00cef034dca.tar.gz
yuzu-4738e14cb052a44c53e47379e595f00cef034dca.tar.bz2
yuzu-4738e14cb052a44c53e47379e595f00cef034dca.tar.lz
yuzu-4738e14cb052a44c53e47379e595f00cef034dca.tar.xz
yuzu-4738e14cb052a44c53e47379e595f00cef034dca.tar.zst
yuzu-4738e14cb052a44c53e47379e595f00cef034dca.zip
Diffstat (limited to '')
-rw-r--r--src/yuzu_cmd/emu_window/emu_window_sdl2.h7
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);