Merge pull request #12160 from german77/mouse_constrain
yuzu: Constrain mouse in render window when emulated
This commit is contained in:
commit
5a96c525e3
5 changed files with 65 additions and 54 deletions
|
@ -167,6 +167,11 @@ protected:
|
|||
*/
|
||||
std::pair<f32, f32> MapToTouchScreen(u32 framebuffer_x, u32 framebuffer_y) const;
|
||||
|
||||
/**
|
||||
* Clip the provided coordinates to be inside the touchscreen area.
|
||||
*/
|
||||
std::pair<u32, u32> ClipToTouchScreen(u32 new_x, u32 new_y) const;
|
||||
|
||||
WindowSystemInfo window_info;
|
||||
|
||||
bool strict_context_required = false;
|
||||
|
@ -181,11 +186,6 @@ private:
|
|||
// By default, ignore this request and do nothing.
|
||||
}
|
||||
|
||||
/**
|
||||
* Clip the provided coordinates to be inside the touchscreen area.
|
||||
*/
|
||||
std::pair<u32, u32> ClipToTouchScreen(u32 new_x, u32 new_y) const;
|
||||
|
||||
Layout::FramebufferLayout framebuffer_layout; ///< Current framebuffer layout
|
||||
|
||||
u32 client_area_width; ///< Current client width, should be set by window impl.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue