1
0
Fork 0

(svn r5460) -Feature: [OSX] macs with touchpads that support two finger scrolling can now use this "scrollwheel" to scroll up/down (ln-)

release/0.5
bjarni 2006-07-04 19:02:49 +00:00
parent 6f75eac41a
commit 0f300a256c
1 changed files with 3 additions and 3 deletions

View File

@ -649,11 +649,11 @@ static bool QZ_PollEvent(void)
break; break;
case NSScrollWheel: case NSScrollWheel:
if ([ event deltaX ] > 0.0 || [ event deltaY ] > 0.0) { /* Scroll up */ if ([ event deltaY ] > 0.0) { /* Scroll up */
_cursor.wheel--; _cursor.wheel--;
} else { /* Scroll down */ } else if ([ event deltaY ] < 0.0) { /* Scroll down */
_cursor.wheel++; _cursor.wheel++;
} } /* else: deltaY was 0.0 and we don't want to do anything */
break; break;
default: default: