List of usage examples for com.badlogic.gdx InputProcessor keyUp
public boolean keyUp(int keycode);
From source file:com.blackboxgaming.engine.factories.LayerFactory.java
@Override public void touchDragged(InputEvent event, float x, float y, int pointer) { float cx = x - 75; cx = (cx < -25 ? -1 : (cx > 25 ? 1 : 0)); InputProcessor input = Gdx.input.getInputProcessor(); if (cx == 1) { input.keyDown(Keys.E);// ww w . ja va 2s . c o m input.keyUp(Keys.Q); } else if (cx == -1) { input.keyDown(Keys.Q); input.keyUp(Keys.E); } else if (cx == 0) { input.keyUp(Keys.Q); input.keyUp(Keys.E); } }
From source file:com.blackboxgaming.engine.factories.LayerFactory.java
@Override public void touchUp(InputEvent event, float x, float y, int pointer, int button) { InputProcessor input = Gdx.input.getInputProcessor(); input.keyUp(Keys.Q); input.keyUp(Keys.E);/*from w w w .j a v a2 s .co m*/ input.keyUp(Keys.SPACE); }
From source file:com.kamigaku.libgdx.extension.InputMultiplexerToggle.java
@Override public boolean keyUp(int keycode) { for (InputProcessor ip : _processors.keySet()) if (_processors.get(ip) && ip.keyUp(keycode)) return true; return false; }