Skip to content

Commit

Permalink
fix: Right-click then left-click fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Pazaz committed Aug 5, 2024
1 parent 51cf71e commit be1903b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runetek3/src/main/java/jagex2/client/GameShell.java
Original file line number Diff line number Diff line change
Expand Up @@ -286,16 +286,16 @@ public final void mousePressed(@OriginalArg(0) MouseEvent e) {
this.mouseClickY = y;

try {
if ((e.getModifiersEx() & MouseEvent.BUTTON3_DOWN_MASK) != 0) {
if (e.getButton() == MouseEvent.BUTTON3) {
this.mouseClickButton = 2;
this.mouseButton = 2;
} else if ((e.getModifiersEx() & MouseEvent.BUTTON1_DOWN_MASK) != 0) {
} else {
this.mouseClickButton = 1;
this.mouseButton = 1;
}

if (InputTracking.enabled) {
InputTracking.mousePressed(x, y, (e.getModifiersEx() & MouseEvent.BUTTON3_DOWN_MASK) != 0 ? 1 : 0);
InputTracking.mousePressed(x, y, e.getButton() == MouseEvent.BUTTON3 ? 1 : 0);
}
} catch (NoSuchMethodError ex) {
if (e.isMetaDown()) {
Expand Down

0 comments on commit be1903b

Please sign in to comment.