-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from N3ROO/MC_1.16.2_dev
Mc 1.16.2 dev
- Loading branch information
Showing
13 changed files
with
133 additions
and
29 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...dev/nero/aimassistance/module/Target.java → ...a/dev/nero/aimassistance/core/Target.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nero/aimassistance/module/TargetType.java → ...v/nero/aimassistance/core/TargetType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/main/java/dev/nero/aimassistance/utils/MouseUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package dev.nero.aimassistance.utils; | ||
|
||
/** | ||
* Need this class because forge did not implement the mouse move event. They did for the scroll and | ||
* input events, but not when the mouse moves. | ||
*/ | ||
public class MouseUtils { | ||
|
||
private static boolean mouseMoved; | ||
|
||
private static int delay = 2; | ||
private static double prevX = -1; | ||
private static double prevY = -1; | ||
|
||
public static void checkForMouseMove() { | ||
double currX = Wrapper.MC.mouseHelper.getMouseX(); | ||
double currY = Wrapper.MC.mouseHelper.getMouseY(); | ||
|
||
if (prevX != -1 && prevY != -1) { | ||
mouseMoved = prevX != currX || prevY != currY; | ||
} | ||
|
||
if (delay == 0) { | ||
prevX = currX; | ||
prevY = currY; | ||
delay = 2; | ||
} else { | ||
delay --; | ||
} | ||
} | ||
|
||
public static boolean mouseMoved() { | ||
return mouseMoved; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"homepage": "https://github.com/N3ROO/AimAssistanceMod/releases", | ||
"promos": { | ||
"1.16.2-latest": "1.1.0", | ||
"1.16.2-recommended": "1.1.0" | ||
"1.16.2-latest": "1.2.0", | ||
"1.16.2-recommended": "1.2.0" | ||
} | ||
} |