mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-17 00:29:50 -04:00
refactor: Suppress NewAPi via annotation
This commit is contained in:
parent
d0e5a345ae
commit
b03bde475a
@ -7,6 +7,7 @@ import static org.lwjgl.glfw.CallbackBridge.sendMouseButton;
|
|||||||
import static org.lwjgl.glfw.CallbackBridge.windowHeight;
|
import static org.lwjgl.glfw.CallbackBridge.windowHeight;
|
||||||
import static org.lwjgl.glfw.CallbackBridge.windowWidth;
|
import static org.lwjgl.glfw.CallbackBridge.windowWidth;
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint;
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.graphics.SurfaceTexture;
|
import android.graphics.SurfaceTexture;
|
||||||
@ -382,6 +383,7 @@ public class MinecraftGLSurface extends View {
|
|||||||
* The event for mouse/joystick movements
|
* The event for mouse/joystick movements
|
||||||
* We don't do the gamepad right now.
|
* We don't do the gamepad right now.
|
||||||
*/
|
*/
|
||||||
|
@SuppressLint("NewApi")
|
||||||
@Override
|
@Override
|
||||||
public boolean dispatchGenericMotionEvent(MotionEvent event) {
|
public boolean dispatchGenericMotionEvent(MotionEvent event) {
|
||||||
int mouseCursorIndex = -1;
|
int mouseCursorIndex = -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user