summaryrefslogtreecommitdiff
path: root/src/core/frontend
diff options
context:
space:
mode:
authorGravatar liamwhite2023-11-27 11:56:24 -0500
committerGravatar GitHub2023-11-27 11:56:24 -0500
commit5a96c525e31797cb9dd69f693fb1746e865964f1 (patch)
tree57543645f9c3dd1ea72e1f9bd7ea81792de3de28 /src/core/frontend
parentMerge pull request #11535 from GPUCode/upload_cmdbuf (diff)
parentyuzu: Constrain mouse in render window when emulated (diff)
downloadyuzu-5a96c525e31797cb9dd69f693fb1746e865964f1.tar.gz
yuzu-5a96c525e31797cb9dd69f693fb1746e865964f1.tar.xz
yuzu-5a96c525e31797cb9dd69f693fb1746e865964f1.zip
Merge pull request #12160 from german77/mouse_constrain
yuzu: Constrain mouse in render window when emulated
Diffstat (limited to 'src/core/frontend')
-rw-r--r--src/core/frontend/emu_window.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/frontend/emu_window.h b/src/core/frontend/emu_window.h
index a72df034e..c7b48a58d 100644
--- a/src/core/frontend/emu_window.h
+++ b/src/core/frontend/emu_window.h
@@ -167,6 +167,11 @@ protected:
167 */ 167 */
168 std::pair<f32, f32> MapToTouchScreen(u32 framebuffer_x, u32 framebuffer_y) const; 168 std::pair<f32, f32> MapToTouchScreen(u32 framebuffer_x, u32 framebuffer_y) const;
169 169
170 /**
171 * Clip the provided coordinates to be inside the touchscreen area.
172 */
173 std::pair<u32, u32> ClipToTouchScreen(u32 new_x, u32 new_y) const;
174
170 WindowSystemInfo window_info; 175 WindowSystemInfo window_info;
171 176
172 bool strict_context_required = false; 177 bool strict_context_required = false;
@@ -181,11 +186,6 @@ private:
181 // By default, ignore this request and do nothing. 186 // By default, ignore this request and do nothing.
182 } 187 }
183 188
184 /**
185 * Clip the provided coordinates to be inside the touchscreen area.
186 */
187 std::pair<u32, u32> ClipToTouchScreen(u32 new_x, u32 new_y) const;
188
189 Layout::FramebufferLayout framebuffer_layout; ///< Current framebuffer layout 189 Layout::FramebufferLayout framebuffer_layout; ///< Current framebuffer layout
190 190
191 u32 client_area_width; ///< Current client width, should be set by window impl. 191 u32 client_area_width; ///< Current client width, should be set by window impl.