Package com.thecherno.cherno.engine.input

Examples of com.thecherno.cherno.engine.input.Mouse


  public void enable(byte device) {
    if ((device & 0x1) == 1) {
      window.addKeyListener(new Keyboard());
    }
    if ((device >> 1 & 0x1) == 1) {
      window.addMouseListener(new Mouse(scale));
      window.addMouseMotionListener(new Mouse(scale));
    }
  }
View Full Code Here

TOP

Related Classes of com.thecherno.cherno.engine.input.Mouse

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.