controlwear / virtual-joystick-android

This library provides a very simple and ready-to-use custom view which emulates a joystick for Android.
Apache License 2.0
352 stars 123 forks source link

Change joystick position programmatically at run-time? #26

Closed nathanRamaNoodles closed 5 years ago

nathanRamaNoodles commented 5 years ago

Is it possible to change the joystick's location from the java code? I am planning on using a Bluetooth joystick to map to the virtual joystick on my phone. But I'm unable to change the position of the joystick programmatically. Is there a way for you to add a method for us to change the position programmatically?

Thanks for this great library :D

IchZerowan commented 5 years ago

I have managed to do this using RelativeLayout's margins, though I cannot currently get joystick working without touching screen for the second time

nathanRamaNoodles commented 5 years ago

I finished my app, and forgot to close this issue. Here's my finished work :)

I decided to make my own joysticks from scratch.