virtual-joystick-android icon indicating copy to clipboard operation
virtual-joystick-android copied to clipboard

Custom values for joystick movement

Open farazappy opened this issue 6 years ago • 3 comments

Hello, I wanna use your library, but I want to use custom values, like I don't want to use Angle/Strength.

For each axis I want a max and a min value, Is this possible? If yes then how?

Thanks.

farazappy avatar Jan 02 '19 06:01 farazappy

Right now, you can use getNormalizedX() and getNormalizedY() to the position along each axis as a integer between 0 and 100. You can use these to calculated values between a min and max value.

ralismark avatar Jan 03 '19 06:01 ralismark

I want to have a range(NormalisedXorY) between to be customizable like, not only from 0 to 100, I want it to be 1000 range. like 0, 1, 2 ......1000. Can something like this be done?

boltcode1 avatar Jul 01 '22 15:07 boltcode1

Right now, you can use getNormalizedX() and getNormalizedY() to the position along each axis as a integer between 0 and 100. You can use these to calculated values between a min and max value.

Please consider above question.

boltcode1 avatar Jul 01 '22 17:07 boltcode1