mirror of
https://github.com/zydeco/minivmac4ios.git
synced 2024-06-08 11:32:36 +00:00
fix abnormal situation on Mac II when moving mouse out of screen
This commit is contained in:
parent
d1a0721b40
commit
8ad866b0dc
|
@ -1941,6 +1941,16 @@ static dispatch_once_t onceToken;
|
|||
#pragma mark - Mouse
|
||||
|
||||
- (void)setMouseX:(NSInteger)x Y:(NSInteger)y {
|
||||
if (x > vMacScreenWidth) {
|
||||
x = vMacScreenWidth;
|
||||
} else if (x < 0) {
|
||||
x = 0;
|
||||
}
|
||||
if (y > vMacScreenHeight) {
|
||||
y = vMacScreenHeight;
|
||||
} else if (y < 0) {
|
||||
y = 0;
|
||||
}
|
||||
MyMousePositionSet(x, y);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user