input: add warp_back_after_non_mouse_input
adds cursor:warp_back_after_non_mouse_input fixes #8675
This commit is contained in:
parent
db24964877
commit
de3ad245dc
5 changed files with 36 additions and 3 deletions
|
|
@ -239,7 +239,8 @@ class CInputManager {
|
|||
|
||||
uint32_t m_uiCapabilities = 0;
|
||||
|
||||
void mouseMoveUnified(uint32_t, bool refocus = false);
|
||||
void mouseMoveUnified(uint32_t, bool refocus = false, bool mouse = false);
|
||||
void recheckMouseWarpOnMouseInput();
|
||||
|
||||
SP<CTabletTool> ensureTabletToolPresent(SP<Aquamarine::ITabletTool>);
|
||||
|
||||
|
|
@ -250,6 +251,10 @@ class CInputManager {
|
|||
PHLLSREF m_pFoundLSToFocus;
|
||||
PHLWINDOWREF m_pFoundWindowToFocus;
|
||||
|
||||
// used for warping back after non-mouse input
|
||||
Vector2D m_vLastMousePos = {};
|
||||
bool m_bLastInputMouse = true;
|
||||
|
||||
// for holding focus on buttons held
|
||||
bool m_bFocusHeldByButtons = false;
|
||||
bool m_bRefocusHeldByButtons = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue