AnotherJake
2004.10.20, 03:17 PM
I'm at a loss to explain this. I get left mouse down and up and I get right mouse up, but no right mouse down? Does anybody have any ideas why this might be happening? Here's the code with NSLogs put in for diagnostics.
//---------------------------------------------------------------------------
- (void)mouseDown:(NSEvent *)theEvent
{
NSLog( @"left mouse down" );
input.leftMouse = YES;
}
//---------------------------------------------------------------------------
- (void)mouseUp:(NSEvent *)theEvent
{
NSLog( @"left mouse up" );
input.leftMouse = NO;
}
//---------------------------------------------------------------------------
- (void)rightMouseDown:(NSEvent *)theEvent
{
NSLog( @"right mouse down" );
input.rightMouse = YES;
}
//---------------------------------------------------------------------------
- (void)rightMouseUp:(NSEvent *)theEvent
{
NSLog( @"right mouse up" );
input.rightMouse = NO;
}
//---------------------------------------------------------------------------
- (void)mouseDown:(NSEvent *)theEvent
{
NSLog( @"left mouse down" );
input.leftMouse = YES;
}
//---------------------------------------------------------------------------
- (void)mouseUp:(NSEvent *)theEvent
{
NSLog( @"left mouse up" );
input.leftMouse = NO;
}
//---------------------------------------------------------------------------
- (void)rightMouseDown:(NSEvent *)theEvent
{
NSLog( @"right mouse down" );
input.rightMouse = YES;
}
//---------------------------------------------------------------------------
- (void)rightMouseUp:(NSEvent *)theEvent
{
NSLog( @"right mouse up" );
input.rightMouse = NO;
}