Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AKeyboard #14

Open
bonsaifree opened this issue Aug 26, 2018 · 1 comment
Open

AKeyboard #14

bonsaifree opened this issue Aug 26, 2018 · 1 comment

Comments

@bonsaifree
Copy link

For some reason I have this weird issue with AKeyboard. I've tried your bot in april and it was fine, now when I rechecked with eclipse oxygen it won't work. Sorry for bothering, you did very good job with this, thanks for sharing it.

@Ravaelles
Copy link
Owner

There as an issue with key events that I was not able to find a work-around for.
What works however is to press key (e.g. +) for a couple of seconds, it then works every time.

Currently game is controlled using +/- to change speed, C to focus on first combat unit etc.

For more latest shortcuts see:

// Key "Escape"
case 1:
System.out.println();
System.out.println("Exit requested by the user");
AGame.exit();
break;
// Key "c" / "C"
case 46:
CameraManager.toggleFocusCameraOnFirstCombatUnit();
break;
// // Key "o" / "O"
// case 24 : case 42:
// Key "p" / "P"
case 25 : case 41:
APainter.togglePainting();
break;
// Key "PauseBreak"
case 3653:
GameSpeed.pauseModeToggle();
break;
// Keys "-" and NumPad "-" and "["
case 12: case 3658: case 26:
GameSpeed.changeSpeedBy(+40);
// System.out.println("Notice: SPEED SLOWER (" + GameSpeed.gameSpeed + ")");
break;
// Keys "+" and NumPad "+" and "]"
case 13: case 3662: case 27:
GameSpeed.changeSpeedBy(-40);
// System.out.println("Notice: SPEED FASTER (" + GameSpeed.gameSpeed + ")");
break;
// Key "1"
case 2:
GameSpeed.changeFrameSkipTo(0);
break;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants