Changeset - r4116:c6aac45f19bc
[Not reviewed]
master
0 1 0
bjarni - 18 years ago 2006-07-04 19:02:49
bjarni@openttd.org
(svn r5460) -Feature: [OSX] macs with touchpads that support two finger scrolling can now use this "scrollwheel" to scroll up/down (ln-)
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
video/cocoa_v.m
Show inline comments
 
@@ -649,11 +649,11 @@ static bool QZ_PollEvent(void)
 
			break;
 

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

	
 
		default:
0 comments (0 inline, 0 general)