Originally Posted by
Tesla
If they just use a lower version of java then any players who have java 9 or above won't be able to right click.
I've seen a lot of people ignore the error and downgrade to java 8 instead of taking 30 seconds to fix the issue. Don't be one of those people
I'm using Vencillio source + client, where is this file? I've searched everywhere lol.
Originally Posted by
Stuart
I tried following this, but Vencillio is different. Here is the program I have for mouseclicks
Code:
public int clickType;
public final int LEFT = 0;
public final int RIGHT = 1;
public final int DRAG = 2;
public final int RELEASED = 3;
public final int MOVE = 4;
public int releasedX;
public int releasedY;
public boolean mouseWheelDown;
public final void mousePressed(MouseEvent e) {
int x = e.getX();
int y = e.getY();
int type = e.getButton();
if (gameFrame != null) {
Insets insets = gameFrame.getInsets();
x -= insets.left;// 4
y -= insets.top;// 22
}
idleTime = 0;
clickX = x;
clickY = y;
aLong29 = System.currentTimeMillis();
if (type == 2) {
mouseWheelDown = true;
mouseWheelX = x;
mouseWheelY = y;
return;
}
if (e.isMetaDown()) {
clickType = RIGHT;
clickMode1 = 2; //was 2
clickMode2 = 2;
} else {
clickType = LEFT;
clickMode1 = 1; //was 1
clickMode2 = 1;
}
}
public final void mouseReleased(MouseEvent e) {
int x = e.getX();
int y = e.getY();
if (gameFrame != null) {
Insets insets = gameFrame.getInsets();
x -= insets.left;// 4
y -= insets.top;// 22
}
releasedX = x;
releasedY = y;
idleTime = 0;
clickMode2 = 0;
clickType = RELEASED;
mouseWheelDown = false;
Client.instance.isExtendingChatArea = false;
}
public final void mouseClicked(MouseEvent mouseevent) {
}
public final void mouseEntered(MouseEvent mouseevent) {
}
public final void mouseExited(MouseEvent mouseevent) {
idleTime = 0;
mouseX = -1;
mouseY = -1;
}
public int mouseWheelX;
public int mouseWheelY;
public final void mouseDragged(MouseEvent e) {
int x = e.getX();
int y = e.getY();
if (gameFrame != null) {
Insets insets = gameFrame.getInsets();
x -= insets.left;
y -= insets.top;
}
if (System.currentTimeMillis() - aLong29 >= 250L || Math.abs(saveClickX - x) > 5 || Math.abs(saveClickY - y) > 5) {
idleTime = 0;
mouseX = x;
mouseY = y;
}
if (mouseWheelDown) {
y = mouseWheelX - e.getX();
int k = mouseWheelY - e.getY();
mouseWheelDragged(y, -k);
mouseWheelX = e.getX();
mouseWheelY = e.getY();
return;
}
idleTime = 0;
mouseX = x;
mouseY = y;
clickType = DRAG;
}
void mouseWheelDragged(int param1, int param2) {
}
public final void mouseMoved(MouseEvent mouseevent) {
int x = mouseevent.getX();
int y = mouseevent.getY();
if (gameFrame != null) {
Insets insets = gameFrame.getInsets();
x -= insets.left;// 4
y -= insets.top;// 22
}
if (System.currentTimeMillis() - aLong29 >= 250L || Math.abs(saveClickX - x) > 5 || Math.abs(saveClickY - y) > 5) {
idleTime = 0;
mouseX = x;
mouseY = y;
}
idleTime = 0;
mouseX = x;
mouseY = y;
clickType = MOVE;
}