package com.unity3d.player;

import android.view.MotionEvent;

/* loaded from: /storage/emulated/0/Documents/jadec/sources/com.UBI.A90.WW/dex-files/2.dex */
public final class k {
    public static int a(MotionEvent motionEvent) {
        int buttonState = motionEvent.getButtonState();
        if ((buttonState & 1) != 1) {
            if ((buttonState & 2) == 2) {
                return 1;
            }
            if ((buttonState & 4) == 4) {
                return 2;
            }
        }
        return 0;
    }
}
