Remote cursor and keyboard
Remote cursor and keyboard
- Subject: Remote cursor and keyboard
- From: "Eric E. Dolecki" <email@hidden>
- Date: Mon, 10 Dec 2012 09:41:56 -0500
I am using GameKit on two devices to have the x,y points from a UIView on
one device sent to the other. The multiplier to "match" points is a * 1.5.
I am moving a UIImageView of a cursor on the target device. It floats above
a custom keyboard thing (not an iOS keyboard) the cursor will interact
with. Is this silly? Yes, but I've been asked to do it.
1. How can I get the movement of the cursor to appear smooth? The accuracy
I have right now is good enough.
In my receiveData on the target device (works but it's a bit jumpy):
CGPoint point = CGPointMake(x, y);
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.1f];
cursor.center = point;
[UIView commitAnimations];
2. How can I do a hit test of the center point of the cursor UIImageView in
relation to a bunch of keyboard keys (little UIViews with images in them)?
I have never had to do this before.
Thanks,
Eric
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden