v3.2.2: Removed power saver, no longer useful now that we're Android 5+
This commit is contained in:
@@ -33,36 +33,7 @@ public class InputHandler extends InputAdapter {
|
||||
private InputMultiplexer multiplexer;
|
||||
|
||||
public InputHandler( Input input ){
|
||||
//An input multiplexer, with additional coord tweaks for power saver mode
|
||||
multiplexer = new InputMultiplexer(){
|
||||
@Override
|
||||
public boolean touchDown(int screenX, int screenY, int pointer, int button) {
|
||||
screenX /= (Game.dispWidth / (float)Game.width);
|
||||
screenY /= (Game.dispHeight / (float)Game.height);
|
||||
return super.touchDown(screenX, screenY, pointer, button);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean touchDragged(int screenX, int screenY, int pointer) {
|
||||
screenX /= (Game.dispWidth / (float)Game.width);
|
||||
screenY /= (Game.dispHeight / (float)Game.height);
|
||||
return super.touchDragged(screenX, screenY, pointer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean touchUp(int screenX, int screenY, int pointer, int button) {
|
||||
screenX /= (Game.dispWidth / (float)Game.width);
|
||||
screenY /= (Game.dispHeight / (float)Game.height);
|
||||
return super.touchUp(screenX, screenY, pointer, button);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean mouseMoved(int screenX, int screenY) {
|
||||
screenX /= (Game.dispWidth / (float)Game.width);
|
||||
screenY /= (Game.dispHeight / (float)Game.height);
|
||||
return super.mouseMoved(screenX, screenY);
|
||||
}
|
||||
};
|
||||
multiplexer = new InputMultiplexer();
|
||||
input.setInputProcessor(multiplexer);
|
||||
addInputProcessor(this);
|
||||
input.setCatchKey( Input.Keys.BACK, true);
|
||||
|
||||
Reference in New Issue
Block a user