Skip to content

Commit

Permalink
Fix #511
Browse files Browse the repository at this point in the history
  • Loading branch information
ollydev committed Jul 30, 2023
1 parent cfdb1ac commit 575f9c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/simba.nativeinterface_darwin.pas
Original file line number Diff line number Diff line change
Expand Up @@ -430,24 +430,24 @@ procedure TSimbaNativeInterface_Darwin.MouseScroll(Scrolls: Integer);

const
ClickTypeToMouseDownEvent: array[MouseButton] of Integer = (
kCGEventRightMouseDown,
kCGEventLeftMouseDown,
kCGEventRightMouseDown,
kCGEventOtherMouseDown,
kCGEventOtherMouseDown,
kCGEventOtherMouseDown
);

ClickTypeToMouseButton: array[MouseButton] of Integer = (
kCGMouseButtonRight,
kCGMouseButtonLeft,
kCGMouseButtonRight,
kCGMouseButtonCenter,
3,
4
);

ClickTypeToMouseUpEvent: array[MouseButton] of Integer = (
kCGEventRightMouseUp,
kCGEventLeftMouseUp,
kCGEventRightMouseUp,
kCGEventOtherMouseUp,
kCGEventOtherMouseUp,
kCGEventOtherMouseUp
Expand Down

0 comments on commit 575f9c2

Please sign in to comment.