Skip to content
This repository has been archived by the owner on May 10, 2019. It is now read-only.

Commit

Permalink
Fixed bug where cursor shows up after first click. Now, cursor stays …
Browse files Browse the repository at this point in the history
…hidden.

Changed hideThatCursor into a c function, to be called within the tap callback
  • Loading branch information
jonchui committed Oct 2, 2013
1 parent b63b89e commit c01a7c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Fake/SimFinger/FakeFingerAppDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@

- (IBAction)installFakeApps:(id)sender;

-(void) hideTheCursor;
void hideTheCursor();

@end
5 changes: 3 additions & 2 deletions Fake/SimFinger/FakeFingerAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ CGEventRef tapCallBack(CGEventTapProxy proxy, CGEventType type, CGEventRef event
[delegate mouseMoved];
break;
}
hideTheCursor();
return event;
}

Expand Down Expand Up @@ -467,12 +468,12 @@ - (void)applicationDidFinishLaunching:(NSNotification *)notification

[self registerForSimulatorWindowResizedNotification];
[self positionSimulatorWindow:nil];
[self hideTheCursor];
hideTheCursor();

NSLog(@"Repositioned simulator window.");
}

-(void) hideTheCursor
void hideTheCursor()
{
// The not so hacky way:
// CGDirectDisplayID myId = CGMainDisplayID();
Expand Down

0 comments on commit c01a7c4

Please sign in to comment.