mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-19 13:00:12 -07:00
Fix hardware mouse not working on some devices
This commit is contained in:
parent
b3135aa735
commit
428e99d013
1 changed files with 4 additions and 1 deletions
|
|
@ -602,7 +602,10 @@ public class BaseMainActivity extends LoggableActivity {
|
|||
}
|
||||
if(mouseCursorIndex == -1) return false; // we cant consoom that, theres no mice!
|
||||
if(CallbackBridge.isGrabbing()) {
|
||||
if(BaseMainActivity.isAndroid8OrHigher()) minecraftGLView.requestPointerCapture();
|
||||
if(BaseMainActivity.isAndroid8OrHigher()){
|
||||
minecraftGLView.requestFocus();
|
||||
minecraftGLView.requestPointerCapture();
|
||||
}
|
||||
}
|
||||
switch(ev.getActionMasked()) {
|
||||
case MotionEvent.ACTION_HOVER_MOVE:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue