Back to project page Station42.
The source code is released under:
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUC...
If you think the Android project Station42 listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.station42.player.mouse; //from w ww. j av a2 s .c om import com.badlogic.gdx.math.Rectangle; import com.badlogic.gdx.math.Vector2; public class EntityMouseState { private boolean[] mouseStates = new boolean[2]; private float x, y; public void setX(float f) { this.x = f; } public void setY(float y) { this.y = y; } public void setLeftDown(boolean buttonPressed) { mouseStates[0] = buttonPressed; } public void setRightDown(boolean buttonPressed) { // if (mouseStates[1]) // System.out.println("DOWN!"); mouseStates[1] = buttonPressed; } public boolean isLeftDown() { return mouseStates[0]; } public boolean isRightDown() { return mouseStates[1]; } public float getX() { return x; } public float getY() { return y; } public Vector2 getLocation() { // TODO Auto-generated method stub return null; } }