package cpup.poke4j.plugin.input;

import cpup.poke4j.Poke;

import java.awt.event.MouseEvent;

public class MouseInput implements Input {
	protected final Poke poke;
	protected final Type type;
	protected final MouseEvent e;
	protected final int column;
	protected final int line;

	public MouseInput(Poke _poke, Type _type, MouseEvent _e, int _column, int _line) {
		poke = _poke;
		type = _type;
		e = _e;
		column = _column;
		line = _line;
	}

	// Getters and Setters
	public Poke getPoke() {
		return poke;
	}

	public Type getType() {
		return type;
	}

	public MouseEvent getEvent() {
		return e;
	}

	public int getColumn() {
		return column;
	}

	public int getLine() {
		return line;
	}

	public int getX() {
		return e.getX();
	}

	public int getY() {
		return e.getY();
	}

	public boolean isShiftDown() {
		return e.isShiftDown();
	}

	public boolean isControlDown() {
		return e.isControlDown();
	}

	public boolean isMetaDown() {
		return e.isMetaDown();
	}

	public boolean isAltDown() {
		return e.isAltDown();
	}

	public boolean isAltGraphDown() {
		return e.isAltGraphDown();
	}

	public int getModifiers() {
		return e.getModifiers();
	}

	public int getModifiersEx() {
		return e.getModifiersEx();
	}

	public static enum Type {
		click,
		drag,
		press
	}
}
@@ -696,96 +696,8 @@
 %09%7D%0A%0A
-%09public int getX() %7B%0A%09%09return e.getX();%0A%09%7D%0A%0A%09public int getY() %7B%0A%09%09return e.getY();%0A%09%7D%0A%0A
 %09pub

Remove raw x and y from MouseInput