Merge pull request #70498 from bruvzg/macos_tilt_fix
[macOS] Fix stylus tilt Y direction.
This commit is contained in:
commit
8580afdd95
|
@ -440,7 +440,7 @@
|
||||||
NSEventSubtype subtype = [event subtype];
|
NSEventSubtype subtype = [event subtype];
|
||||||
if (subtype == NSEventSubtypeTabletPoint) {
|
if (subtype == NSEventSubtypeTabletPoint) {
|
||||||
const NSPoint p = [event tilt];
|
const NSPoint p = [event tilt];
|
||||||
mm->set_tilt(Vector2(p.x, p.y));
|
mm->set_tilt(Vector2(p.x, -p.y));
|
||||||
mm->set_pen_inverted(last_pen_inverted);
|
mm->set_pen_inverted(last_pen_inverted);
|
||||||
} else if (subtype == NSEventSubtypeTabletProximity) {
|
} else if (subtype == NSEventSubtypeTabletProximity) {
|
||||||
// Check if using the eraser end of pen only on proximity event.
|
// Check if using the eraser end of pen only on proximity event.
|
||||||
|
|
Loading…
Reference in New Issue