diff options
author | Tony Wasserka <neobrainx@gmail.com> | 2015-05-02 19:15:03 +0200 |
---|---|---|
committer | Tony Wasserka <neobrainx@gmail.com> | 2015-05-02 19:15:03 +0200 |
commit | 7859b145cf11aaed39fc430ab1cf277a0cc39e77 (patch) | |
tree | 66b4622566d00fe5788dc8ce7dbfc899d9c056d6 /src/common/emu_window.h | |
parent | 6a2d8c46f21e8813e0472dba28932ed461ce1a66 (diff) | |
parent | b8328593fe3d60ecb066ad0959d8c1e8dfb4d3c5 (diff) |
Merge pull request #698 from Zaneo/clip_stylus_input
EmuWindow: Clip mouse input coordinates to emulated screen dimensions.
Diffstat (limited to 'src/common/emu_window.h')
-rw-r--r-- | src/common/emu_window.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/emu_window.h b/src/common/emu_window.h index c8e2de04a..e0fc12a48 100644 --- a/src/common/emu_window.h +++ b/src/common/emu_window.h @@ -206,5 +206,10 @@ private: u16 touch_x; ///< Touchpad X-position in native 3DS pixel coordinates (0-320) u16 touch_y; ///< Touchpad Y-position in native 3DS pixel coordinates (0-240) + /** + * Clip the provided coordinates to be inside the touchscreen area. + */ + std::tuple<unsigned,unsigned> ClipToTouchScreen(unsigned new_x, unsigned new_y); + Service::HID::PadState pad_state; }; |