Package org.robovm.cocoatouch.coregraphics

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


  private void toTouchEvents(NSSet touches, UIEvent uiEvent) {
    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);
       
 
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.