mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-19 09:39:25 -04:00
etc(ControlMap): Remove unneccessary code
Was used to fix an issue with something before with the entire nativeSendChar/Mods being frozen up, no longer needed Also removing the unused imports n ControlButton
This commit is contained in:
parent
947afefbd9
commit
f395edda95
@ -210,11 +210,7 @@ public class EfficientAndroidLWJGLKeycode {
|
||||
int androidKeycode = sAndroidKeycodes[sLwjglKeycodesReversed[lwjglGlfwKeycode]];
|
||||
KeyEvent key = new KeyEvent(KeyEvent.ACTION_UP, androidKeycode);
|
||||
char charToSend;
|
||||
if (key.getUnicodeChar() == 0) {
|
||||
charToSend = '\u0000';
|
||||
} else {
|
||||
charToSend = ((char) key.getUnicodeChar());
|
||||
}
|
||||
charToSend = ((char) key.getUnicodeChar());
|
||||
int currentMods = CallbackBridge.getCurrentMods();
|
||||
if (Character.isLetter(charToSend) && (
|
||||
((currentMods & LwjglGlfwKeycode.GLFW_MOD_SHIFT) != 0) ^
|
||||
|
@ -1,7 +1,6 @@
|
||||
package net.kdt.pojavlaunch.customcontrols.buttons;
|
||||
|
||||
import static net.kdt.pojavlaunch.LwjglGlfwKeycode.GLFW_KEY_UNKNOWN;
|
||||
import static org.lwjgl.glfw.CallbackBridge.sendChar;
|
||||
import static org.lwjgl.glfw.CallbackBridge.sendKeyPress;
|
||||
import static org.lwjgl.glfw.CallbackBridge.sendMouseButton;
|
||||
|
||||
@ -9,7 +8,6 @@ import android.annotation.SuppressLint;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.Paint;
|
||||
import android.os.Build;
|
||||
import android.util.Log;
|
||||
import android.util.TypedValue;
|
||||
import android.view.Gravity;
|
||||
@ -18,21 +16,16 @@ import android.view.View;
|
||||
import android.widget.TextView;
|
||||
|
||||
import net.kdt.pojavlaunch.EfficientAndroidLWJGLKeycode;
|
||||
import net.kdt.pojavlaunch.Logger;
|
||||
import net.kdt.pojavlaunch.LwjglGlfwKeycode;
|
||||
import net.kdt.pojavlaunch.MainActivity;
|
||||
import net.kdt.pojavlaunch.PojavApplication;
|
||||
import net.kdt.pojavlaunch.R;
|
||||
import net.kdt.pojavlaunch.customcontrols.ControlData;
|
||||
import net.kdt.pojavlaunch.customcontrols.ControlLayout;
|
||||
import net.kdt.pojavlaunch.customcontrols.handleview.EditControlSideDialog;
|
||||
import net.kdt.pojavlaunch.customcontrols.keyboard.LwjglCharSender;
|
||||
import net.kdt.pojavlaunch.prefs.LauncherPreferences;
|
||||
|
||||
import org.lwjgl.glfw.CallbackBridge;
|
||||
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
@SuppressLint({"ViewConstructor", "AppCompatCustomView"})
|
||||
public class ControlButton extends TextView implements ControlInterface {
|
||||
private final Paint mRectPaint = new Paint();
|
||||
|
Loading…
x
Reference in New Issue
Block a user