Archive 17/01/2023.

Joystick with axis control

Lumak

https://github.com/Lumak/Urho3D-Joystick

yushli1

That looks nice. Thank you for sharing it.

Lumak

You’re welcome. This repo should make mobile development more convenient.

Also updated the repo late last night, so you might want to grab the latest.

Lumak

repo updated - refactored ScreenJoystick struct.

I’m considering adding d-pad button images to the Joystick.png and perhaps, resizing it to 256x256.
Any thoughts?

Lumak

Here’s what I’m thinking:

Miegamicis

This was exactly what I needed. Managed to get it working with AngelScript by exposing GameController object to scripting. I can add a PR later with the AngelScript binding code, if needed. Script binding seems to be a hot topic lately.

Lumak

That’s good to hear. I don’t support scripting language in my repo, but perhaps, you can contribute to Urho3D engine with your work.

Lumak

I added PS4 controller mapping for Android. I’m uncertain about how Android generates GUID but would like to verify that it’s consistent across different API levels. API level that I tested is Android 4.1.2, API 16.

To enable the PS4 controller testing, uncomment the line 38, //#define TEST_PS4_CONTROLLERedit: in GameController.cpp.

I appreciate anyone with a PS4 controller and Android to verify that it works and mention your API lvl. Thanks.


Edit: Disregard. I got my answer.