Android: Corrected overlay joystick draw order

This commit is contained in:
OpenSauce04 2024-04-19 21:45:41 +01:00
parent cdd70e1f0c
commit efaf1bf85f

View File

@ -88,9 +88,9 @@ class InputOverlayDrawableJoystick(
fun draw(canvas: Canvas?) { fun draw(canvas: Canvas?) {
outerBitmap.draw(canvas!!) outerBitmap.draw(canvas!!)
boundsBoxBitmap.draw(canvas)
currentStateBitmapDrawable.alpha = opacity currentStateBitmapDrawable.alpha = opacity
currentStateBitmapDrawable.draw(canvas) currentStateBitmapDrawable.draw(canvas)
boundsBoxBitmap.draw(canvas)
} }
fun updateStatus(event: MotionEvent, overlay:InputOverlay): Boolean { fun updateStatus(event: MotionEvent, overlay:InputOverlay): Boolean {