I have the Leap Motion Controller.
I am trying to patch the CCMenu Class in the Cocos Engine My Company uses for a game we already have on the iOS. We wanted to release a version for Mac with Leap Motion Support.
In the main menu we use the CCMenu Class, I am trying to add in support for the leap.
When ever the user performs a certain gesture we are given a cartseian coordinate point which represented the location of the gesture. The origin of the coordinate system is at the center of the field that the Leap Motion can detect the users hands and the x and y values have a clamped range of 1.0, so they can only be between -1.0 and 1.0
So if the gesture was performed at the top left the coordinats would be -1.0, 1.0.
How would I take these coordinates and then convert them into a set of points the CC Menu can use to work out what has been hit, so if I took the coordinates from the example above, it would map it to the top left of the window and select the menu item if there is one there ?