Rename middl toother mouse

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12948 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2002-03-02 07:23:18 +00:00
parent 5f688fbf6e
commit 4f5825c6a0
14 changed files with 92 additions and 66 deletions

View file

@ -256,7 +256,7 @@ static NSCell *tileCell = nil;
NSPoint lastLocation;
NSPoint location;
unsigned eventMask = NSLeftMouseDownMask | NSLeftMouseUpMask
| NSPeriodicMask | NSMiddleMouseUpMask | NSRightMouseUpMask;
| NSPeriodicMask | NSOtherMouseUpMask | NSRightMouseUpMask;
NSDate *theDistantFuture = [NSDate distantFuture];
BOOL done = NO;
@ -273,7 +273,7 @@ static NSCell *tileCell = nil;
switch ([theEvent type])
{
case NSRightMouseUp:
case NSMiddleMouseUp:
case NSOtherMouseUp:
case NSLeftMouseUp:
/* right mouse up or left mouse up means we're done */
done = YES;
@ -2702,15 +2702,15 @@ resetCursorRectsForView(NSView *theView)
_lastPoint = [theEvent locationInWindow];
break;
case NSMiddleMouseDown:
case NSOtherMouseDown:
v = [_contentView hitTest: [theEvent locationInWindow]];
[v middleMouseDown: theEvent];
[v otherMouseDown: theEvent];
_lastPoint = [theEvent locationInWindow];
break;
case NSMiddleMouseUp:
case NSOtherMouseUp:
v = [_contentView hitTest: [theEvent locationInWindow]];
[v middleMouseUp: theEvent];
[v otherMouseUp: theEvent];
_lastPoint = [theEvent locationInWindow];
break;
@ -2727,7 +2727,7 @@ resetCursorRectsForView(NSView *theView)
break;
case NSLeftMouseDragged:
case NSMiddleMouseDragged:
case NSOtherMouseDragged:
case NSRightMouseDragged:
case NSMouseMoved:
switch (type)
@ -2736,9 +2736,9 @@ resetCursorRectsForView(NSView *theView)
v = [_contentView hitTest: [theEvent locationInWindow]];
[v mouseDragged: theEvent];
break;
case NSMiddleMouseDragged:
case NSOtherMouseDragged:
v = [_contentView hitTest: [theEvent locationInWindow]];
[v middleMouseDragged: theEvent];
[v otherMouseDragged: theEvent];
break;
case NSRightMouseDragged:
v = [_contentView hitTest: [theEvent locationInWindow]];