AndroidMouse.smali

.class public Lcom/dts/freefireth/AndroidMouse;
.super Ljava/lang/Object;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;,
        Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;,
        Lcom/dts/freefireth/AndroidMouse$ButtonStatus;,
        Lcom/dts/freefireth/AndroidMouse$MotionEventJSON;
    }
.end annotation


# static fields
.field public static final PRIMARY_BUTTON:I = 0x0

.field public static final SECONDARY_BUTTON:I = 0x1

.field public static final TERTIARY_BUTTON:I = 0x2

.field private static _InputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;

.field private static _OutputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;

.field private static gson:Lcom/google/gson/Gson;


# direct methods
.method static constructor <clinit>()V
    .registers 2

    new-instance v0, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;-><init>(Lcom/dts/freefireth/AndroidMouse$1;)V

    sput-object v0, Lcom/dts/freefireth/AndroidMouse;->_InputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;

    new-instance v0, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;

    invoke-direct {v0, v1}, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;-><init>(Lcom/dts/freefireth/AndroidMouse$1;)V

    sput-object v0, Lcom/dts/freefireth/AndroidMouse;->_OutputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;

    new-instance v0, Lcom/google/gson/Gson;

    invoke-direct {v0}, Lcom/google/gson/Gson;-><init>()V

    sput-object v0, Lcom/dts/freefireth/AndroidMouse;->gson:Lcom/google/gson/Gson;

    return-void
.end method

.method public constructor <init>()V
    .registers 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method private static _hasPointerCapture()Z
    .registers 1

    sget-object v0, Lcom/dts/freefireth/FFAPI;->MainActivity:Lcom/dts/freefireth/FFMainActivity;

    if-nez v0, :cond_6

    const/4 v0, 0x0

    return v0

    :cond_6
    invoke-virtual {v0}, Lcom/dts/freefireth/FFMainActivity;->hasPointerCapture()Z

    move-result v0

    return v0
.end method

.method public static getDeltaScrollHorizontal()F
    .registers 1

    sget-object v0, Lcom/dts/freefireth/AndroidMouse;->_OutputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;

    iget v0, v0, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->DeltaScrollH:F

    return v0
.end method

.method public static getDeltaScrollVertical()F
    .registers 1

    sget-object v0, Lcom/dts/freefireth/AndroidMouse;->_OutputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;

    iget v0, v0, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->DeltaScrollV:F

    return v0
.end method

.method public static getMouseDeltaX()F
    .registers 1

    sget-object v0, Lcom/dts/freefireth/AndroidMouse;->_OutputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;

    iget v0, v0, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->DeltaX:F

    return v0
.end method

.method public static getMouseDeltaY()F
    .registers 1

    sget-object v0, Lcom/dts/freefireth/AndroidMouse;->_OutputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;

    iget v0, v0, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->DeltaY:F

    return v0
.end method

.method public static getMouseX()F
    .registers 1

    sget-object v0, Lcom/dts/freefireth/AndroidMouse;->_OutputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;

    iget v0, v0, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->X:F

    return v0
.end method

.method public static getMouseY()F
    .registers 1

    sget-object v0, Lcom/dts/freefireth/AndroidMouse;->_OutputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;

    iget v0, v0, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->Y:F

    return v0
.end method

.method public static getScrollHorizontal()F
    .registers 1

    sget-object v0, Lcom/dts/freefireth/AndroidMouse;->_OutputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;

    iget v0, v0, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->ScrollH:F

    return v0
.end method

.method public static getScrollVertical()F
    .registers 1

    sget-object v0, Lcom/dts/freefireth/AndroidMouse;->_OutputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;

    iget v0, v0, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->ScrollV:F

    return v0
.end method

.method public static hasPointerCapture()Z
    .registers 1

    sget-object v0, Lcom/dts/freefireth/AndroidMouse;->_OutputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;

    iget-boolean v0, v0, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->HasPointerCapture:Z

    return v0
.end method

.method public static isPressingButton(I)Z
    .registers 2

    sget-object v0, Lcom/dts/freefireth/AndroidMouse;->_OutputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;

    iget-object v0, v0, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->Buttons:[Lcom/dts/freefireth/AndroidMouse$ButtonStatus;

    aget-object p0, v0, p0

    iget-boolean p0, p0, Lcom/dts/freefireth/AndroidMouse$ButtonStatus;->Pressing:Z

    return p0
.end method

.method public static justPressedButton(I)Z
    .registers 2

    sget-object v0, Lcom/dts/freefireth/AndroidMouse;->_OutputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;

    iget-object v0, v0, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->Buttons:[Lcom/dts/freefireth/AndroidMouse$ButtonStatus;

    aget-object p0, v0, p0

    iget-boolean p0, p0, Lcom/dts/freefireth/AndroidMouse$ButtonStatus;->JustPressed:Z

    return p0
.end method

.method public static justReleasedButton(I)Z
    .registers 2

    sget-object v0, Lcom/dts/freefireth/AndroidMouse;->_OutputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;

    iget-object v0, v0, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->Buttons:[Lcom/dts/freefireth/AndroidMouse$ButtonStatus;

    aget-object p0, v0, p0

    iget-boolean p0, p0, Lcom/dts/freefireth/AndroidMouse$ButtonStatus;->JustReleased:Z

    return p0
.end method

.method public static onCapturedPointer(Landroid/view/MotionEvent;)V
    .registers 5

    sget-object v0, Lcom/dts/freefireth/AndroidMouse;->_InputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;

    monitor-enter v0

    :try_start_3
    sget-object v1, Lcom/dts/freefireth/AndroidMouse;->_InputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;

    const/4 v2, 0x1

    iput-boolean v2, v1, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;->Dirty:Z

    iget v2, v1, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;->CapturedPointer_DeltaX:F

    invoke-virtual {p0}, Landroid/view/MotionEvent;->getX()F

    move-result v3

    add-float/2addr v2, v3

    iput v2, v1, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;->CapturedPointer_DeltaX:F

    sget-object v1, Lcom/dts/freefireth/AndroidMouse;->_InputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;

    iget v2, v1, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;->CapturedPointer_DeltaY:F

    invoke-virtual {p0}, Landroid/view/MotionEvent;->getY()F

    move-result v3

    add-float/2addr v2, v3

    iput v2, v1, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;->CapturedPointer_DeltaY:F

    invoke-static {p0}, Lcom/dts/freefireth/AndroidMouse;->updateInputMouseStatus(Landroid/view/MotionEvent;)V

    monitor-exit v0

    return-void

    :catchall_21
    move-exception p0

    monitor-exit v0
    :try_end_23
    .catchall {:try_start_3 .. :try_end_23} :catchall_21

    throw p0
.end method

.method public static onGenericMotionEvent(Landroid/view/MotionEvent;)V
    .registers 4

    sget-object v0, Lcom/dts/freefireth/AndroidMouse;->_InputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;

    monitor-enter v0

    :try_start_3
    sget-object v1, Lcom/dts/freefireth/AndroidMouse;->_InputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;

    const/4 v2, 0x1

    iput-boolean v2, v1, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;->Dirty:Z

    invoke-virtual {p0}, Landroid/view/MotionEvent;->getX()F

    move-result v2

    iput v2, v1, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;->GenericMotionEvent_X:F

    sget-object v1, Lcom/dts/freefireth/AndroidMouse;->_InputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;

    invoke-virtual {p0}, Landroid/view/MotionEvent;->getY()F

    move-result v2

    iput v2, v1, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;->GenericMotionEvent_Y:F

    invoke-static {p0}, Lcom/dts/freefireth/AndroidMouse;->updateInputMouseStatus(Landroid/view/MotionEvent;)V

    monitor-exit v0

    return-void

    :catchall_1b
    move-exception p0

    monitor-exit v0
    :try_end_1d
    .catchall {:try_start_3 .. :try_end_1d} :catchall_1b

    throw p0
.end method

.method public static onUnityFrame()V
    .registers 8

    invoke-static {}, Lcom/dts/freefireth/AndroidMouse;->_hasPointerCapture()Z

    move-result v0

    sget-object v1, Lcom/dts/freefireth/AndroidMouse;->_InputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;

    monitor-enter v1

    :try_start_7
    sget-object v2, Lcom/dts/freefireth/AndroidMouse;->_OutputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;

    iget-boolean v3, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->HasPointerCapture:Z

    const/4 v4, 0x0

    if-eq v3, v0, :cond_2e

    iput-boolean v0, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->HasPointerCapture:Z

    iput v4, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->DeltaX:F

    iput v4, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->DeltaY:F

    sget-object v3, Lcom/dts/freefireth/AndroidMouse;->_InputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;

    iget-boolean v5, v3, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;->Dirty:Z

    if-eqz v5, :cond_64

    if-nez v0, :cond_25

    iget v0, v3, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;->GenericMotionEvent_X:F

    iput v0, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->X:F

    iget v0, v3, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;->GenericMotionEvent_Y:F

    iput v0, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->Y:F

    goto :goto_64

    :cond_25
    iput v4, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->X:F

    iput v4, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->Y:F

    iput v4, v3, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;->CapturedPointer_DeltaX:F

    :goto_2b
    iput v4, v3, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;->CapturedPointer_DeltaY:F

    goto :goto_64

    :cond_2e
    sget-object v3, Lcom/dts/freefireth/AndroidMouse;->_InputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;

    iget-boolean v5, v3, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;->Dirty:Z

    if-eqz v5, :cond_60

    if-eqz v0, :cond_4b

    iget v0, v3, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;->CapturedPointer_DeltaX:F

    iput v0, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->DeltaX:F

    iget v5, v3, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;->CapturedPointer_DeltaY:F

    iput v5, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->DeltaY:F

    iget v6, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->X:F

    add-float/2addr v6, v0

    iput v6, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->X:F

    iget v0, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->Y:F

    add-float/2addr v0, v5

    iput v0, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->Y:F

    iput v4, v3, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;->CapturedPointer_DeltaX:F

    goto :goto_2b

    :cond_4b
    iget v0, v3, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;->GenericMotionEvent_X:F

    iget v5, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->X:F

    sub-float v5, v0, v5

    iput v5, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->DeltaX:F

    iget v3, v3, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;->GenericMotionEvent_Y:F

    iget v5, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->Y:F

    sub-float v5, v3, v5

    iput v5, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->DeltaY:F

    iput v0, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->X:F

    iput v3, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->Y:F

    goto :goto_64

    :cond_60
    iput v4, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->DeltaX:F

    iput v4, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->DeltaY:F

    :cond_64
    :goto_64
    sget-object v0, Lcom/dts/freefireth/AndroidMouse;->_InputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;

    iget-boolean v3, v0, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;->Dirty:Z

    const/4 v5, 0x0

    if-eqz v3, :cond_ae

    iget v3, v0, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;->ScrollH:F

    iget v4, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->DeltaScrollH:F

    sub-float v4, v3, v4

    iput v4, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->DeltaScrollH:F

    iget v0, v0, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;->ScrollV:F

    iget v4, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->DeltaScrollV:F

    sub-float v4, v0, v4

    iput v4, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->DeltaScrollV:F

    iput v3, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->ScrollH:F

    iput v0, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->ScrollV:F

    const/4 v0, 0x0

    :goto_80
    sget-object v2, Lcom/dts/freefireth/AndroidMouse;->_InputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;

    iget-object v2, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;->Buttons:[Z

    array-length v3, v2

    if-ge v0, v3, :cond_c7

    sget-object v3, Lcom/dts/freefireth/AndroidMouse;->_OutputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;

    iget-object v3, v3, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->Buttons:[Lcom/dts/freefireth/AndroidMouse$ButtonStatus;

    aget-object v3, v3, v0

    iget-boolean v4, v3, Lcom/dts/freefireth/AndroidMouse$ButtonStatus;->Pressing:Z

    const/4 v6, 0x1

    if-nez v4, :cond_98

    aget-boolean v7, v2, v0

    if-eqz v7, :cond_98

    const/4 v7, 0x1

    goto :goto_99

    :cond_98
    const/4 v7, 0x0

    :goto_99
    iput-boolean v7, v3, Lcom/dts/freefireth/AndroidMouse$ButtonStatus;->JustPressed:Z

    if-eqz v4, :cond_a2

    aget-boolean v4, v2, v0

    if-nez v4, :cond_a2

    goto :goto_a3

    :cond_a2
    const/4 v6, 0x0

    :goto_a3
    iput-boolean v6, v3, Lcom/dts/freefireth/AndroidMouse$ButtonStatus;->JustReleased:Z

    aget-boolean v4, v2, v0

    iput-boolean v4, v3, Lcom/dts/freefireth/AndroidMouse$ButtonStatus;->Pressing:Z

    aput-boolean v5, v2, v0

    add-int/lit8 v0, v0, 0x1

    goto :goto_80

    :cond_ae
    iput v4, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->DeltaScrollH:F

    iput v4, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->DeltaScrollV:F

    const/4 v0, 0x0

    :goto_b3
    sget-object v2, Lcom/dts/freefireth/AndroidMouse;->_InputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;

    iget-object v2, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;->Buttons:[Z

    array-length v2, v2

    if-ge v0, v2, :cond_c7

    sget-object v2, Lcom/dts/freefireth/AndroidMouse;->_OutputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;

    iget-object v2, v2, Lcom/dts/freefireth/AndroidMouse$MouseStatus_UnityFrame;->Buttons:[Lcom/dts/freefireth/AndroidMouse$ButtonStatus;

    aget-object v2, v2, v0

    iput-boolean v5, v2, Lcom/dts/freefireth/AndroidMouse$ButtonStatus;->JustPressed:Z

    iput-boolean v5, v2, Lcom/dts/freefireth/AndroidMouse$ButtonStatus;->JustReleased:Z

    add-int/lit8 v0, v0, 0x1

    goto :goto_b3

    :cond_c7
    sget-object v0, Lcom/dts/freefireth/AndroidMouse;->_InputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;

    iput-boolean v5, v0, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;->Dirty:Z

    monitor-exit v1

    return-void

    :catchall_cd
    move-exception v0

    monitor-exit v1
    :try_end_cf
    .catchall {:try_start_7 .. :try_end_cf} :catchall_cd

    goto :goto_d1

    :goto_d0
    throw v0

    :goto_d1
    goto :goto_d0
.end method

.method public static registerCapturedPointerListener()V
    .registers 1

    sget-object v0, Lcom/dts/freefireth/FFAPI;->MainActivity:Lcom/dts/freefireth/FFMainActivity;

    if-nez v0, :cond_5

    return-void

    :cond_5
    invoke-virtual {v0}, Lcom/dts/freefireth/FFMainActivity;->registerCapturedPointerListener()V

    return-void
.end method

.method public static registerGenericMotionEventListener()V
    .registers 1

    sget-object v0, Lcom/dts/freefireth/FFAPI;->MainActivity:Lcom/dts/freefireth/FFMainActivity;

    if-nez v0, :cond_5

    return-void

    :cond_5
    invoke-virtual {v0}, Lcom/dts/freefireth/FFMainActivity;->registerGenericMotionEventListener()V

    return-void
.end method

.method public static releasePointerCapture()V
    .registers 1

    sget-object v0, Lcom/dts/freefireth/FFAPI;->MainActivity:Lcom/dts/freefireth/FFMainActivity;

    if-nez v0, :cond_5

    return-void

    :cond_5
    invoke-virtual {v0}, Lcom/dts/freefireth/FFMainActivity;->releasePointerCapture()V

    return-void
.end method

.method public static requestPointerCapture()V
    .registers 1

    sget-object v0, Lcom/dts/freefireth/FFAPI;->MainActivity:Lcom/dts/freefireth/FFMainActivity;

    if-nez v0, :cond_5

    return-void

    :cond_5
    invoke-virtual {v0}, Lcom/dts/freefireth/FFMainActivity;->requestPointerCapture()V

    return-void
.end method

.method private static sendMotionEventToUnity(Ljava/lang/String;Landroid/view/MotionEvent;)V
    .registers 2

    return-void
.end method

.method public static unregisterCapturedPointerListener()V
    .registers 1

    sget-object v0, Lcom/dts/freefireth/FFAPI;->MainActivity:Lcom/dts/freefireth/FFMainActivity;

    if-nez v0, :cond_5

    return-void

    :cond_5
    invoke-virtual {v0}, Lcom/dts/freefireth/FFMainActivity;->unregisterCapturedPointerListener()V

    return-void
.end method

.method public static unregisterGenericMotionEventListener()V
    .registers 1

    sget-object v0, Lcom/dts/freefireth/FFAPI;->MainActivity:Lcom/dts/freefireth/FFMainActivity;

    if-nez v0, :cond_5

    return-void

    :cond_5
    invoke-virtual {v0}, Lcom/dts/freefireth/FFMainActivity;->registerGenericMotionEventListener()V

    return-void
.end method

.method private static updateInputMouseStatus(Landroid/view/MotionEvent;)V
    .registers 5

    sget-object v0, Lcom/dts/freefireth/AndroidMouse;->_InputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;

    const/16 v1, 0xa

    invoke-virtual {p0, v1}, Landroid/view/MotionEvent;->getAxisValue(I)F

    move-result v1

    iput v1, v0, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;->ScrollH:F

    sget-object v0, Lcom/dts/freefireth/AndroidMouse;->_InputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;

    const/16 v1, 0x9

    invoke-virtual {p0, v1}, Landroid/view/MotionEvent;->getAxisValue(I)F

    move-result v1

    iput v1, v0, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;->ScrollV:F

    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x15

    if-lt v0, v1, :cond_30

    const/4 v0, 0x0

    :goto_1b
    sget-object v1, Lcom/dts/freefireth/AndroidMouse;->_InputStatus:Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;

    iget-object v1, v1, Lcom/dts/freefireth/AndroidMouse$MouseStatus_RealTime;->Buttons:[Z

    array-length v2, v1

    if-ge v0, v2, :cond_30

    aget-boolean v2, v1, v0

    const/4 v3, 0x1

    shl-int/2addr v3, v0

    invoke-static {p0, v3}, Lcom/dts/freefireth/a;->a(Landroid/view/MotionEvent;I)Z

    move-result v3

    or-int/2addr v2, v3

    aput-boolean v2, v1, v0

    add-int/lit8 v0, v0, 0x1

    goto :goto_1b

    :cond_30
    return-void
.end method