Skip to content

Commit

Permalink
Merge issues
Browse files Browse the repository at this point in the history
  • Loading branch information
The Judge committed Sep 17, 2024
1 parent 3295a82 commit 92a37fb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/main/java/pojlib/UnityPlayerActivity.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package pojlib;

import static android.os.Build.VERSION.SDK_INT;

import static org.lwjgl.glfw.CallbackBridge.sendKeyPress;
import static org.lwjgl.glfw.CallbackBridge.sendMouseButton;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.Activity;
import android.app.ActivityGroup;
import android.content.ClipData;
import android.content.ClipboardManager;
Expand Down Expand Up @@ -41,11 +39,16 @@
import pojlib.input.gamepad.Gamepad;
import pojlib.util.Constants;
import pojlib.util.FileUtil;
import pojlib.util.Logger;

public class UnityPlayerActivity extends ActivityGroup implements IUnityPlayerLifecycleEvents, GrabListener
{
protected UnityPlayer mUnityPlayer; // don't change the name of this variable; referenced from native code
public static volatile ClipboardManager GLOBAL_CLIPBOARD;
private Gamepad mGamepad = null;

private RemapperManager mInputManager;

private boolean mLastGrabState = false;

// Override this in your custom UnityPlayerActivity to tweak the command line arguments passed to the Unity Android Player
// The command line arguments are passed as a string, separated by spaces
Expand Down Expand Up @@ -364,7 +367,6 @@ public boolean onKeyMultiple(int keyCode, int repeatCount, KeyEvent event) {
@Override protected void onDestroy ()
{
mUnityPlayer.destroy();
wakeLock.release();
super.onDestroy();
}

Expand Down

0 comments on commit 92a37fb

Please sign in to comment.