Skip to content

Files

Latest commit

919015b · Jun 26, 2023

History

History
33 lines (26 loc) · 1.4 KB

File metadata and controls

33 lines (26 loc) · 1.4 KB

Bevy Virtual Joystick Mobile

This show how works on android

Screenshot Video
Screenshot_2023-04-07-19-05-15-360_com sergioribera simple Preview

Features

  • Float Joystick
  • Expansive area to interact with joystick

NOTE: The color in area is only for make it visible

Settings of this example

  • VirtualJoystickAxis::Both
  • VirtualJoystickType::Floating

Run example

cargo apk run

Or use this proyect for compile gradle proyect

NOTE: This is the best option to have full control over the android part of the game, and it is also very useful because of the easy integration by making pipelines in github action

# on root of proyect
docker run --rm -it -v "$(pwd)/:/src" -w /src/examples/multiple_joysticks_mobile/android sergioribera/rust-android:170-sdk-33 assembleDebug
# make own
sudo chown -R $USER examples/multiple_joysticks_mobile/android/build/
# and install
adb install examples/multiple_joysticks_mobile/android/build/outputs/apk/debug/android-debug.apk