Bugstick
Bugstick copied to clipboard
Joystick widget for Android.
/* CENTER CHILD BY DEFAULT */ @Override public LayoutParams generateLayoutParams(AttributeSet attrs) { LayoutParams params = new LayoutParams(getContext(), attrs); params.gravity = Gravity.CENTER; return params; } @Override protected ViewGroup.LayoutParams generateLayoutParams(@NonNull ViewGroup.LayoutParams p)...
if `app:base_shape="rect"`, the angle and offset will be in range [ [-1,1], [-1, 1] ] ``` ... ```
Add ability to engage joystick drag only after an explicit command, e.g. startDrag() on button press
Touch event would already have to be in progress; similar in style to lock(), i.e. startDrag() would have to be called each time a new drag gesture is performed, or...
The links for pom and the aar are broken in maven repo. Can you please fix it? or can you publish the aar file? My projects are failing to compile.