summaryrefslogtreecommitdiffstats
path: root/src/yuzu_cmd/emu_window/emu_window_sdl2.h
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2023-02-04 17:31:12 +0100
committergerman77 <juangerman-13@hotmail.com>2023-02-04 17:31:12 +0100
commit424643f9af91ff704f1bebfd9150f8ff153bdda5 (patch)
treea2a17960bf5b94165070e4f266d6a8c5442d060f /src/yuzu_cmd/emu_window/emu_window_sdl2.h
parentMerge pull request #9708 from ameerj/gl-context-flush (diff)
downloadyuzu-424643f9af91ff704f1bebfd9150f8ff153bdda5.tar
yuzu-424643f9af91ff704f1bebfd9150f8ff153bdda5.tar.gz
yuzu-424643f9af91ff704f1bebfd9150f8ff153bdda5.tar.bz2
yuzu-424643f9af91ff704f1bebfd9150f8ff153bdda5.tar.lz
yuzu-424643f9af91ff704f1bebfd9150f8ff153bdda5.tar.xz
yuzu-424643f9af91ff704f1bebfd9150f8ff153bdda5.tar.zst
yuzu-424643f9af91ff704f1bebfd9150f8ff153bdda5.zip
Diffstat (limited to '')
-rw-r--r--src/yuzu_cmd/emu_window/emu_window_sdl2.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2.h b/src/yuzu_cmd/emu_window/emu_window_sdl2.h
index 25c23e2a5..d9b453dee 100644
--- a/src/yuzu_cmd/emu_window/emu_window_sdl2.h
+++ b/src/yuzu_cmd/emu_window/emu_window_sdl2.h
@@ -38,17 +38,17 @@ protected:
/// Called by WaitEvent when a key is pressed or released.
void OnKeyEvent(int key, u8 state);
- /// Called by WaitEvent when the mouse moves.
- void OnMouseMotion(s32 x, s32 y);
-
/// Converts a SDL mouse button into MouseInput mouse button
InputCommon::MouseButton SDLButtonToMouseButton(u32 button) const;
+ /// Translates pixel position to float position
+ std::pair<float, float> MouseToTouchPos(s32 touch_x, s32 touch_y) const;
+
/// Called by WaitEvent when a mouse button is pressed or released
void OnMouseButton(u32 button, u8 state, s32 x, s32 y);
- /// Translates pixel position (0..1) to pixel positions
- std::pair<unsigned, unsigned> TouchToPixelPos(float touch_x, float touch_y) const;
+ /// Called by WaitEvent when the mouse moves.
+ void OnMouseMotion(s32 x, s32 y);
/// Called by WaitEvent when a finger starts touching the touchscreen
void OnFingerDown(float x, float y, std::size_t id);