android: Apply clang format
This commit is contained in:
parent
0e52d11ede
commit
58531ecf4f
|
@ -266,11 +266,11 @@ public final class NativeLibrary {
|
||||||
coreErrorAlertLock.notify();
|
coreErrorAlertLock.notify();
|
||||||
}
|
}
|
||||||
}).setOnDismissListener(dialog -> {
|
}).setOnDismissListener(dialog -> {
|
||||||
coreErrorAlertResult = true;
|
coreErrorAlertResult = true;
|
||||||
synchronized (coreErrorAlertLock) {
|
synchronized (coreErrorAlertLock) {
|
||||||
coreErrorAlertLock.notify();
|
coreErrorAlertLock.notify();
|
||||||
}
|
}
|
||||||
}).create();
|
}).create();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -287,6 +287,7 @@ public final class NativeLibrary {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles a core error.
|
* Handles a core error.
|
||||||
|
*
|
||||||
* @return true: continue; false: abort
|
* @return true: continue; false: abort
|
||||||
*/
|
*/
|
||||||
public static boolean OnCoreError(CoreError error, String details) {
|
public static boolean OnCoreError(CoreError error, String details) {
|
||||||
|
|
|
@ -143,12 +143,11 @@ public final class InputOverlayDrawableJoystick {
|
||||||
// Clamp the circle pad input to a circle
|
// Clamp the circle pad input to a circle
|
||||||
final float angle = (float) Math.atan2(AxisY, AxisX);
|
final float angle = (float) Math.atan2(AxisY, AxisX);
|
||||||
float radius = (float) Math.sqrt(AxisX * AxisX + AxisY * AxisY);
|
float radius = (float) Math.sqrt(AxisX * AxisX + AxisY * AxisY);
|
||||||
if(radius > 1.0f)
|
if (radius > 1.0f) {
|
||||||
{
|
|
||||||
radius = 1.0f;
|
radius = 1.0f;
|
||||||
}
|
}
|
||||||
axises[0] = ((float)Math.cos(angle) * radius);
|
axises[0] = ((float) Math.cos(angle) * radius);
|
||||||
axises[1] = ((float)Math.sin(angle) * radius);
|
axises[1] = ((float) Math.sin(angle) * radius);
|
||||||
SetInnerBounds();
|
SetInnerBounds();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue