Skip to content

Latest commit

 

History

History

simple_mobile

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

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