Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void turnTo(int d) {
- do {
- keyboard.sendKey(getAngleDirection(d)); //TODO: bot needs to have a pressKey and releaseKey method
- } while (getCurrentAngle() <= d - 5 || getCurrentAngle() >= d + 5 && !Thread.currentThread().isInterrupted());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement