Package org.robovm.cocoatouch.coregraphics

Examples of org.robovm.cocoatouch.coregraphics.CGPoint.y()


    for (UITouch touch : (NSSet<UITouch>) touches) {
      CGPoint loc = touch.getLocation(touch.getView());
      synchronized(touchEvents) {
        TouchEvent event = touchEventPool.obtain();
        event.x = (int)(loc.x() * app.displayScaleFactor);
        event.y = (int)(loc.y() * app.displayScaleFactor);
        event.phase = touch.getPhase();
        event.timestamp = (long)(touch.getTimestamp() * 1000000000);
        touchEvents.add(event);
       
        if(touch.getPhase() == UITouchPhase.Began) {         
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.