Package com.googlecode.klenwell.playndev.core.event

Examples of com.googlecode.klenwell.playndev.core.event.GameEvent


       * This creates a central handler for events
       */
      pointer().setListener(new Pointer.Listener() {
          @Override
            public void onPointerStart(Pointer.Event event) {
              GameEvent gameEvent = EventApi.normalizeEvent(EventType.POINTERSTART, event);
              EventApi.enqueue(gameEvent);
            }
         
            @Override
            public void onPointerEnd(Pointer.Event event) {
                GameEvent gameEvent = EventApi.normalizeEvent(EventType.POINTEREND, event);
                EventApi.enqueue(gameEvent);
            }

            @Override
            public void onPointerDrag(Pointer.Event event) {
                GameEvent gameEvent = EventApi.normalizeEvent(EventType.POINTERDRAG, event);
                EventApi.enqueue(gameEvent);
            }
        });
     
      // bind listeners to targets (circles)
View Full Code Here

TOP

Related Classes of com.googlecode.klenwell.playndev.core.event.GameEvent

Copyright © 2018 www.massapicom. 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.