Input logic cleanup:
- Fix invalid detection of mouse input. Prioritize using the event tool type to detect the type of the event, and only use the event source as fallback. - Ensure that pressure and tilt information is passed for touch drag events - Consolidate logic and remove redundant methods - Improve the logic to detect when external hardware keyboards are connected to the device
This commit is contained in:
parent
daa81bbb7d
commit
625b92e3cd
6 changed files with 133 additions and 126 deletions
|
|
@ -42,6 +42,8 @@ public:
|
|||
struct TouchPos {
|
||||
int id = 0;
|
||||
Point2 pos;
|
||||
float pressure = 0;
|
||||
Vector2 tilt;
|
||||
};
|
||||
|
||||
struct MouseEventInfo {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue