Skip to content

Commit

Permalink
fix(macos): Touch input broken (LizardByte#3240)
Browse files Browse the repository at this point in the history
  • Loading branch information
BayLee4 authored and KuleRucket committed Oct 9, 2024
1 parent a3e6c25 commit 1f1bbcf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/platform/macos/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,9 @@ const KeyCodeMap kKeyCodesMap[] = {
CGEventSetDoubleValueField(event, kCGMouseEventDeltaY, deltaY);

CGEventPost(kCGHIDEventTap, event);
// For why this is here, see:
// https://stackoverflow.com/questions/15194409/simulated-mouseevent-not-working-properly-osx
CGWarpMouseCursorPosition(location);
}

inline CGEventType
Expand Down

0 comments on commit 1f1bbcf

Please sign in to comment.