mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-20 05:20:14 -07:00
refactor: Suppress NewAPi via annotation
This commit is contained in:
parent
d0e5a345ae
commit
b03bde475a
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue