The NSEvent class method scrollingDeltaY is available for Mac OS 10.7 and newer. Since QEMU supports Mac OS 10.5 and up, we need to be using a method that is available on these version of Mac OS X. The deltaY method is a method that does the same thing as scrollingDeltaY and is available on Mac OS 10.5 and up. So we simply replace scrollingDeltaY with deltaY.
Signed-off-by: John Arbuckle <programmingk...@gmail.com> --- ui/cocoa.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index 2991ed4f19..e34714081d 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -803,7 +803,7 @@ - (void) handleEvent:(NSEvent *)event */ /* Determine if this is a scroll up or scroll down event */ - buttons = ([event scrollingDeltaY] > 0) ? + buttons = ([event deltaY] > 0) ? INPUT_BUTTON_WHEEL_UP : INPUT_BUTTON_WHEEL_DOWN; qemu_input_queue_btn(dcl->con, buttons, true); qemu_input_event_sync(); -- 2.14.3 (Apple Git-98)