android: Apply clang format

This commit is contained in:
Narr the Reg 2023-02-13 12:35:56 -06:00 committed by bunnei
parent 0e52d11ede
commit 58531ecf4f
2 changed files with 9 additions and 9 deletions

View File

@ -287,6 +287,7 @@ public final class NativeLibrary {
/**
* Handles a core error.
*
* @return true: continue; false: abort
*/
public static boolean OnCoreError(CoreError error, String details) {

View File

@ -143,8 +143,7 @@ public final class InputOverlayDrawableJoystick {
// Clamp the circle pad input to a circle
final float angle = (float) Math.atan2(AxisY, AxisX);
float radius = (float) Math.sqrt(AxisX * AxisX + AxisY * AxisY);
if(radius > 1.0f)
{
if (radius > 1.0f) {
radius = 1.0f;
}
axises[0] = ((float) Math.cos(angle) * radius);