Package org.mt4j.input.inputData

Examples of org.mt4j.input.inputData.AbstractCursorInputEvt.preFire()


        AbstractCursorInputEvt lastEvt = inputCursor.getCurrentEvent();
        if (lastEvt.getId() != AbstractCursorInputEvt.INPUT_ENDED){
          try {
            AbstractCursorInputEvt endedEvt = (AbstractCursorInputEvt) lastEvt.clone();
            endedEvt.setId(AbstractCursorInputEvt.INPUT_ENDED);
            endedEvt.preFire();
           
            this.sendEvtToSceneProcessors(lastScene, endedEvt);
            logger.debug("Sending INPUT_ENDED evt to scene: " + lastScene.getName() + " Cursor: " + endedEvt.getCursor());
          } catch (CloneNotSupportedException e) {
            e.printStackTrace();
View Full Code Here


          ){
        */
          try {
            AbstractCursorInputEvt startedEvt = (AbstractCursorInputEvt) lastEvt.clone();
            startedEvt.setId(AbstractCursorInputEvt.INPUT_DETECTED);
            startedEvt.preFire();
           
            this.sendEvtToSceneProcessors(newScene, startedEvt);
            logger.debug("Sending INPUT_DETECTED evt to scene: " + newScene.getName() + " Cursor: " + startedEvt.getCursor());
          } catch (CloneNotSupportedException e) {
            e.printStackTrace();
View Full Code Here

          newEvt = (AbstractCursorInputEvt) posEvt.clone();
          newEvt.setPositionX(newX);
          newEvt.setPositionY(newY);
//          newCursor.addEvent(newEvt);
          newEvt.setCursor(newCursor);
          newEvt.preFire();
          //Note: We dont set a target for the event! this can be
          //handled newly in the wondowed scenes InputRetargeter processor
        } catch (CloneNotSupportedException e) {
          e.printStackTrace();
        }
View Full Code Here

            newEvt = (AbstractCursorInputEvt) posEvt.clone();
            newEvt.setPositionX(newX);
            newEvt.setPositionY(newY);
//            newCursor.addEvent(newEvt);
            newEvt.setCursor(newCursor);
            newEvt.preFire();
          } catch (CloneNotSupportedException e) {
            e.printStackTrace();
          }
        }else{
          System.err.println("Couldnt find new cursor!");
View Full Code Here

            newEvt = (AbstractCursorInputEvt) posEvt.clone();
            newEvt.setPositionX(newX);
            newEvt.setPositionY(newY);
//            newCursor.addEvent(newEvt);
            newEvt.setCursor(newCursor);
            newEvt.preFire();
          } catch (CloneNotSupportedException e) {
            e.printStackTrace();
          }
        }else{
          System.err.println("Couldnt find new cursor!");
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.