diff options
author | 2025-02-18 02:44:51 -0800 | |
---|---|---|
committer | 2025-02-18 02:44:51 -0800 | |
commit | 43a1d490549ede9c1278b04484f43a9acbeb535e (patch) | |
tree | b7aed810388e309f9ca9be9572f5e883d424d638 /include | |
parent | 4e451db0518d87cf44c6a16548745d42d100f648 (diff) | |
parent | 5b4aeb3d65839932a9c650fc5b4f671483712cd3 (diff) |
Merge changes I34ed5f0f,I9538646f into main
* changes:
[23/n Dispatcher refactor] Add const ref to window and connection
Move utility functions related to isFromSource to Input.h
Diffstat (limited to 'include')
-rw-r--r-- | include/input/Input.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/input/Input.h b/include/input/Input.h index e84023e5e5..002b3a7d15 100644 --- a/include/input/Input.h +++ b/include/input/Input.h @@ -316,6 +316,19 @@ struct PointerProperties; bool isStylusEvent(uint32_t source, const std::vector<PointerProperties>& properties); +bool isStylusHoverEvent(uint32_t source, const std::vector<PointerProperties>& properties, + int32_t action); + +bool isFromMouse(uint32_t source, ToolType tooltype); + +bool isFromTouchpad(uint32_t source, ToolType tooltype); + +bool isFromDrawingTablet(uint32_t source, ToolType tooltype); + +bool isHoverAction(int32_t action); + +bool isMouseOrTouchpad(uint32_t sources); + /* * Flags that flow alongside events in the input dispatch system to help with certain * policy decisions such as waking from device sleep. |