Examples of KeyBoard


Examples of Hack.CPUEmulator.Keyboard

        segments[Definitions.LOCAL_POINTER_ADDRESS] = new MemorySegment[]{localSegment};
        segments[Definitions.ARG_POINTER_ADDRESS] = new MemorySegment[]{argSegment};
        segments[Definitions.THIS_POINTER_ADDRESS] = new MemorySegment[]{thisSegment};
        segments[Definitions.THAT_POINTER_ADDRESS] = new MemorySegment[]{thatSegment};

        keyboard = new Keyboard(ram, null);
        keyboard.reset();

        CallStack callStack = new CallStack(null);
        callStack.reset();
View Full Code Here

Examples of Hack.CPUEmulator.Keyboard

        segments[Definitions.LOCAL_POINTER_ADDRESS] = new MemorySegment[]{localSegment};
        segments[Definitions.ARG_POINTER_ADDRESS] = new MemorySegment[]{argSegment};
        segments[Definitions.THIS_POINTER_ADDRESS] = new MemorySegment[]{thisSegment};
        segments[Definitions.THAT_POINTER_ADDRESS] = new MemorySegment[]{thatSegment};

        keyboard = new Keyboard(ram, gui.getKeyboard());
        keyboard.reset();

        CallStack callStack = new CallStack(gui.getCallStack());
        callStack.reset();
View Full Code Here

Examples of com.alssoftrd.events.KeyBoard

    public JAlsRdp(Configuration conf) {
        super(conf);
        ewu = new EventWakeUp(this);
        mouse = new Mouse();
        keyboard = new KeyBoard();
    }
View Full Code Here

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

    return graphics;
  }

  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

Examples of com.tivo.hme.bananas.BKeyboard.Keyboard

    }

    private void initUI() {

        // get the size of a default keyboard
        Keyboard keys;
        if (isHighDef()) {
            keys = HDKeyboard.getStandardKeyboard(BKeyboard.PLAIN_KEYBOARD);
            Point p = HDKeyboard.getKeyboardSize(keys, true, -1);
            keyboard = new HDKeyboard(getNormal(), getContentX(), getContentY(),
                    p.x, p.y, keys, true, HDKeyboard.DEFAULT_INPUT_WIDTH, true);
View Full Code Here

Examples of com.trevor.king.Snake.input.Keyboard

        Toolkit kit = Toolkit.getDefaultToolkit();
        icon = kit.createImage(url);
    }

    public void init() {
        key = new Keyboard();       
        snake = new SnakeCharacter(WIDTH, HEIGHT, screen, WIDTH / 2, HEIGHT / 2, key, speed);
        bg = new Background("/snakebg.png", WIDTH, HEIGHT, screen);
       
        count = 0;
        score = 0;
View Full Code Here

Examples of javaPlay.Keyboard

  }

  //M�todo executado a cada itera��o do jogo.
  public void step(long timeElapsed) {

    Keyboard k = GameEngine.getInstance().getKeyboard();
    if (k.keyDown(Keyboard.RIGHT_KEY)) {
      jogador.aumentaVelocidadeHorizontal();
    }
    if (k.keyDown(Keyboard.LEFT_KEY)) {
      jogador.diminuiVelocidadeHorizontal();
    }
    if (k.keyDown(Keyboard.SPACE_KEY)) {
      jogador.mudaCor();
    }
    if (k.keyDown(KeyEvent.VK_P)) {
      jogador.para();
    }
   
   
    if (k.keyDown(KeyEvent.VK_D)) {
      jogador2.aumentaVelocidadeHorizontal();
    }
    if (k.keyDown(KeyEvent.VK_A)) {
      jogador2.diminuiVelocidadeHorizontal();
    }
    if (k.keyDown(KeyEvent.VK_S)) {
      jogador2.aumentaVelocidadeVertical();
    }
    if (k.keyDown(KeyEvent.VK_W)) {
      jogador2.diminuiVelocidadeVertical();
    }

    jogador.step(timeElapsed);
    jogador2.step(timeElapsed);
View Full Code Here

Examples of javaPlay.Keyboard

    this.y = 50;
  }
 
  public void step(long timeElapsed) {
    //pega o objeto respons�vel pelo teclado
    Keyboard k = GameEngine.getInstance().getKeyboard();

    //Verifica se uma tecla direcional est� pressionado
    //Em caso positivo, altera a posi��o do jogador
    if(k.keyDown(Keyboard.DOWN_KEY)){
      this.y += this.velocidade;
    }
    if(k.keyDown(Keyboard.UP_KEY)){
      this.y -= this.velocidade;
    }
    if(k.keyDown(Keyboard.LEFT_KEY)){
      this.x -= this.velocidade;
    }
    if(k.keyDown(Keyboard.RIGHT_KEY)){
      this.x += this.velocidade;
    }
  }
View Full Code Here

Examples of javaPlay.Keyboard

      this.raios[i].draw(g);
    }
  }

  private void acoesTeclado(){
    Keyboard k = GameEngine.getInstance().getKeyboard();
    if(k.keyDown(Keyboard.RIGHT_KEY)){
      jogador.aumentaVelocidadeHorizontal();
    }
    if(k.keyDown(Keyboard.LEFT_KEY)){
      jogador.diminuiVelocidadeHorizontal();
    }
    if(k.keyDown(KeyEvent.VK_P)){
      this.pause = !this.pause;
    }
  }
View Full Code Here

Examples of javaPlay.Keyboard

    this.diametro = 20;
  }
 
  public void step(long timeElapsed) {
    //pega o objeto respons�vel pelo teclado
    Keyboard k = GameEngine.getInstance().getKeyboard();

    //Verifica se uma tecla direcional est� pressionado
    //Em caso positivo, altera a posi��o do jogador
    if(k.keyDown(Keyboard.DOWN_KEY)){
      this.y += this.velocidade;
    }
    if(k.keyDown(Keyboard.UP_KEY)){
      this.y -= this.velocidade;
    }
    if(k.keyDown(Keyboard.LEFT_KEY)){
      this.x -= this.velocidade;
    }
    if(k.keyDown(Keyboard.RIGHT_KEY)){
      this.x += this.velocidade;
    }
  }
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.