Skip to content

Add support for game controllers with auto key binding and enable controller support for android#788

Merged
crudelios merged 3 commits into
bvschaik:masterfrom
crudelios:improved-joystick-support-android
Apr 28, 2026
Merged

Add support for game controllers with auto key binding and enable controller support for android#788
crudelios merged 3 commits into
bvschaik:masterfrom
crudelios:improved-joystick-support-android

Conversation

@crudelios
Copy link
Copy Markdown
Collaborator

Fixes #787

@crudelios
Copy link
Copy Markdown
Collaborator Author

For reference, this is untested. Hopefully @PhantomLordM can test it out for us!

@crudelios crudelios force-pushed the improved-joystick-support-android branch from e314fbd to 0529a71 Compare April 28, 2026 13:49
@PhantomLordM
Copy link
Copy Markdown

PhantomLordM commented Apr 28, 2026

For reference, this is untested. Hopefully @PhantomLordM can test it out for us!

Thank you!
I'll test it out later in the afternoon and report back.

@PhantomLordM
Copy link
Copy Markdown

PhantomLordM commented Apr 28, 2026

For reference, this is untested. Hopefully @PhantomLordM can test it out for us!

Really sorry for the noob question, but...how could I download apk with those changes to test the features?
I don't know nothing about programing, so would need some help there ;). I was browsing links and looking and found Checks, but there was also note "no artifacts were created" under the Android section and there were bunch of files for different operating systems, except for Android.

@crudelios
Copy link
Copy Markdown
Collaborator Author

Ah you're right, the Android build is not provided for pull requests.

Building for Android manually is a big hassle too.

I'll tell you what, I'll go ahead and add support in Augustus instead, do you mind testing using Augustus? Augustus is much more experimental than Julius anyway.

Then if it works there, it can also be merged here.

@bvschaik
Copy link
Copy Markdown
Owner

Ah you're right, the Android build is not provided for pull requests.

That's because it needs a signing key that's not provided for branches outside the repo. If you put the branch in the julius repo instead of your own it will upload an APK artifact.

Another option: just go ahead and merge, we'll see on develop.

@PhantomLordM
Copy link
Copy Markdown

No problem for me with testing it out on Augustus, also I have a few handhelds (four to be exact) so I could check it out on all of them, at least there'll be some brand/models variation. Please let me know when the feature would be implemented on Augustus.

@crudelios
Copy link
Copy Markdown
Collaborator Author

Another option: just go ahead and merge, we'll see on develop.

Eh, if you don't mind, it's less work for me!

But did you look at the code yet?

@bvschaik
Copy link
Copy Markdown
Owner

But did you look at the code yet?

I had a quick peek and it looks fine to me at first glance.

@crudelios
Copy link
Copy Markdown
Collaborator Author

Nice, I'll merge then!

@PhantomLordM as soon as it's built you can test!

@crudelios crudelios merged commit 016d525 into bvschaik:master Apr 28, 2026
15 checks passed
@PhantomLordM
Copy link
Copy Markdown

Nice, I'll merge then!

@PhantomLordM as soon as it's built you can test!

Hi,

I run the 016d525 and the game reacts to controller input, but something is broken.
What works:
Right stick - moves the map - working fine
Left and Right bumpers - rotates the map - working fine

What doesn't work:
Left stick - touching left stick or moving in any direction makes map going to the far left and then right stick doesn't move the map any more. I needed to touch screen to move map to enable movement with right stick then.
ABXY buttons - A button somehow works, when clicked the window with terrain description shows up, rest of the buttons don't show any reaction.
Also: there's no mouse pointer of any sorts.

@crudelios
Copy link
Copy Markdown
Collaborator Author

Ah, this is what I feared. Improper support.

So, what's needed:

  • Enable software cursor for android when using a joystick. Or maybe enable the hardware cursor (native, faster), not sure if it's possible without an actual mouse connected.
  • Fix the joystick issues. I've had this problem on some other devices on Augustus too.

Since Julius is more stable, I'll move testing to Augusuts. I'll open an issue there, post commits for you to test (if you don't mind) then when things are working I'll backport the changes to Juius.

Luckily I have a controller for Android so I can test it myself, but debugging for Android is terrible!

@crudelios crudelios deleted the improved-joystick-support-android branch April 30, 2026 09:58
@PhantomLordM
Copy link
Copy Markdown

Since Julius is more stable, I'll move testing to Augusuts. I'll open an issue there, post commits for you to test (if you don't mind) then when things are working I'll backport the changes to Juius.

I would love to help with testing, if that's ok with you. Just let me know please, when the new commit would be ready.

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

Successfully merging this pull request may close these issues.

Controller support for Android

3 participants