/** * eAdventure (formerly <e-Adventure> and <e-Game>) is a research project of the * <e-UCM> research group. * * Copyright 2005-2010 <e-UCM> research group. * * You can access a list of all the contributors to eAdventure at: * http://e-adventure.e-ucm.es/contributors * * <e-UCM> is a research group of the Department of Software Engineering * and Artificial Intelligence at the Complutense University of Madrid * (School of Computer Science). * * C Profesor Jose Garcia Santesmases sn, * 28040 Madrid (Madrid), Spain. * * For more info please visit: <http://e-adventure.e-ucm.es> or * <http://www.e-ucm.es> * * **************************************************************************** * * This file is part of eAdventure, version 2.0 * * eAdventure is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * eAdventure is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with eAdventure. If not, see <http://www.gnu.org/licenses/>. */ package es.eucm.ead.playground.tests.application; import com.badlogic.gdx.Input; import com.badlogic.gdx.InputProcessor; import com.badlogic.gdx.graphics.Pixmap; public class TestInput implements Input { private int x, y; private InputProcessor inputProcessor; @Override public float getAccelerometerX() { return 0; } @Override public float getAccelerometerY() { return 0; } @Override public float getAccelerometerZ() { return 0; } @Override public int getX() { return x; } @Override public int getX(int pointer) { return x; } @Override public int getDeltaX() { return 0; } @Override public int getDeltaX(int pointer) { return 0; } @Override public int getY() { return y; } @Override public int getY(int pointer) { return y; } @Override public int getDeltaY() { return 0; } @Override public int getDeltaY(int pointer) { return 0; } @Override public boolean isTouched() { return false; } @Override public boolean justTouched() { return false; } @Override public boolean isTouched(int pointer) { return false; } @Override public boolean isButtonPressed(int button) { return false; } @Override public boolean isKeyPressed(int key) { return false; } @Override public void getTextInput(TextInputListener listener, String title, String text) { } @Override public void getPlaceholderTextInput(TextInputListener listener, String title, String placeholder) { } @Override public void setOnscreenKeyboardVisible(boolean visible) { } @Override public void vibrate(int milliseconds) { } @Override public void vibrate(long[] pattern, int repeat) { } @Override public void cancelVibrate() { } @Override public float getAzimuth() { return 0; } @Override public float getPitch() { return 0; } @Override public float getRoll() { return 0; } @Override public void getRotationMatrix(float[] matrix) { } @Override public long getCurrentEventTime() { return 0; } @Override public void setCatchBackKey(boolean catchBack) { } @Override public void setCatchMenuKey(boolean catchMenu) { } @Override public void setInputProcessor(InputProcessor processor) { this.inputProcessor = processor; } @Override public InputProcessor getInputProcessor() { return inputProcessor; } @Override public boolean isPeripheralAvailable(Peripheral peripheral) { return false; } @Override public int getRotation() { return 0; } @Override public Orientation getNativeOrientation() { return Orientation.Landscape; } @Override public void setCursorCatched(boolean catched) { } @Override public boolean isCursorCatched() { return false; } @Override public void setCursorPosition(int x, int y) { this.x = x; this.y = y; } @Override public void setCursorImage(Pixmap pixmap, int xHotspot, int yHotspot) { } }