mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-17 00:29:50 -04:00
Device independant gamepad sensitivity
This commit is contained in:
parent
696eb1a620
commit
88b1c3d9c3
@ -107,8 +107,7 @@ public class Gamepad {
|
||||
if(lastGrabbingState){
|
||||
currentMap = gameMap;
|
||||
pointerView.setVisibility(View.INVISIBLE);
|
||||
//sensitivity in game is HARDWARE resolution dependent.
|
||||
mouseSensitivity = 24 / gameActivity.sensitivityFactor;
|
||||
mouseSensitivity = 18;
|
||||
return;
|
||||
}
|
||||
|
||||
@ -120,8 +119,8 @@ public class Gamepad {
|
||||
CallbackBridge.sendCursorPos(gameActivity.mouse_x, gameActivity.mouse_y);
|
||||
placePointerView(CallbackBridge.physicalWidth/2, CallbackBridge.physicalHeight/2);
|
||||
pointerView.setVisibility(View.VISIBLE);
|
||||
//sensitivity in menu is MC resolution dependent
|
||||
mouseSensitivity = 19 * gameActivity.scaleFactor;
|
||||
//sensitivity in menu is MC and HARDWARE resolution dependent
|
||||
mouseSensitivity = 19 * gameActivity.scaleFactor / gameActivity.sensitivityFactor;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user