Commit graph

182 commits

Author SHA1 Message Date
SerpentSpirale
8c7bba530e Handle configuration changes to resize the surface;
Deal with surface creation/destruction;
2022-04-02 16:39:59 +02:00
SerpentSpirale
98a5d0b6fd Switch to SurfaceView for performance; Fix dropping items when it shouldn't be the case; 2022-04-02 16:39:59 +02:00
artdeell
965cad4fd7 A lot of changes
- Force profiles, no more profiles on/off switch!
- (probably partially) Conventionalize all profile changes
- Rename most variables for the changes to look nice
- Squash a couple null checks
- Separate cache from adapter and change how it works
- Don't keep Context
2022-03-17 19:03:38 +03:00
ArtDev
cf726684c5
Merge branch 'profiles-2-electric-boogaloo' into merge-profiles 2022-03-17 17:48:58 +03:00
artdeell
de8a16e5c5 We do a little renaming 2022-03-10 21:21:46 +03:00
SerpentSpirale
e61b811545 Update layout names 2022-03-10 21:18:07 +03:00
SerpentSpirale
150feccb83 Refactor JREUtils.java 2022-03-10 21:18:07 +03:00
SerpentSpirale
c891ecf27f Rename LWJGLGLFWKeycode class 2022-03-10 21:18:07 +03:00
khanhduytran0
a0262bd08b Update GLFW window state (hover, visibility)
This fixes DynamicFPS mod being broken
2022-03-04 08:21:05 +07:00
artDev
d7556c318b Upstreamify 2022-02-04 17:20:51 +03:00
khanhduytran0
9114ddacf6 Changes
- Java architecture check is now performed in the Runtime Manager dialog.
- Required Java version is now stated when launching 1.17+ without it installed.
- [Mod installer] Java version is now checked before displaying the file picker. Java 8 is now automatically selected.
- [Mod installer] Brought back "Launch with custom arguments", can be accessed by long-pressing the "Install .jar" button.
2022-01-30 16:44:49 +07:00
artdeell
b85dd16209 Fix merge conflicts 2022-01-10 17:50:38 +03:00
artdeell
015e27daa0 Make the profile settings from the previous commit user-editable 2022-01-10 17:38:16 +03:00
SerpentSpirale
2867ef3ad2 New option, start with virtual mouse on (#2399) 2022-01-06 22:59:00 +01:00
artdeell
ac40da2c4e TMP_COMMIT 2022-01-05 12:47:07 +03:00
artdeell
ad8d115b82 ▼▼▼
- Probably fix race condition when clearing the cache
- Unload unneeded launcher activity while in game
2021-12-13 22:45:52 +03:00
artdeell
9608545111 Changes
- The game runs now
2021-12-05 15:13:06 +03:00
SerpentSpirale
4a3a046e95 Better filtering of inputs for the back button 2021-11-25 21:06:12 +01:00
SerpentSpirale
a99e081f33 Reset log file upon launching MC or a .jar 2021-11-25 21:06:12 +01:00
SerpentSpirale
d5437659d0 Finally removed the LoggableActivity 2021-11-25 21:06:12 +01:00
SerpentSpirale
9e3d5532ef BaseMainActivity now uses a loggerView 2021-11-25 21:06:12 +01:00
SerpentSpirale
46481cdcaa W.I.P Port over to the new logger 2021-11-25 21:06:12 +01:00
SerpentSpirale
165cc2a8f0 Fix back key not being intercepted 2021-11-25 21:06:12 +01:00
SerpentSpirale
2a12db6216 - Fix distance evaluation bug
- Move static inputs methods to CallbackBridge
- Restored pointerDebugTextview, now auto-instanciated.
- Simplified main_with_ctrl hierarchy
2021-11-25 21:06:12 +01:00
SerpentSpirale
15ece0c416 - Move most input handling to the MCGLView
- Remove context holding from the Gamepad object
- Simplified main_with_custom_ctrl layout hierarchy
2021-11-25 21:06:12 +01:00
SerpentSpirale
81018bf517 Cleanup BaseMainActivity 2021-11-25 21:06:12 +01:00
SerpentSpirale
3dd0e0331b - Move some BaseMainActivity to their respective classes
- Improved control onTouch performance
2021-11-25 21:06:12 +01:00
SerpentSpirale
4f53399d09 WIP moving code from BaseMainActivity to MineViewGL 2021-11-25 21:06:12 +01:00
SerpentSpirale
fa78ff0642 Increase touchpad mouse resilience 2021-11-15 11:05:17 +01:00
SerpentSpirale
d4e19bf6a8 Fix hotbar taking mouse pass-through 2021-11-14 22:35:01 +01:00
SerpentSpirale
f12ac9466d Scrolling is less over-sensitive and more consistent 2021-11-11 11:49:19 +01:00
SerpentSpirale
156f414cfc Attempt to support 1.13+ sub-pixel cursor 2021-11-11 11:49:19 +01:00
SerpentSpirale
d183c991a0 Support sub-pixel cursor precision 2021-11-11 11:49:19 +01:00
SerpentSpirale
b6400a2cf3 Make sliding less finger sensitive 2021-11-11 11:49:19 +01:00
SerpentSpirale
0536f9419d Fix wrong detection method used 2021-11-11 11:49:19 +01:00
SerpentSpirale
2bd8fae66d Changed gestureDetector to the singleTapDetector 2021-11-11 11:49:19 +01:00
SerpentSpirale
c3942d9570 Update BaseMainActivity to use the new tap detector 2021-11-11 11:49:19 +01:00
Duy Tran Khanh
f30b4a23e0
Use scaled x,y for touch hover 2021-10-12 11:13:56 +07:00
Duy Tran Khanh
f1e4f6ea4c
Fix camera jumps when switch to grab state while moving finger 2021-10-12 09:07:56 +07:00
Duy Tran Khanh
96202b9d05
Possible fix for broken touch hover 2021-10-12 08:28:52 +07:00
Boulay Mathias
543b91fb88
Remove debug toast on a DEBUG build.
But hey, not like the end user cares
2021-09-25 15:25:17 +02:00
SerpentSpirale
103aba6f60 Fix mouse being treated as back button on some devices 2021-09-20 21:37:27 +02:00
SerpentSpirale
125be60e6f Fix mouse lag once and for all 2021-09-13 19:51:21 +02:00
SerpentSpirale
ff87188a28 Slight optimisation 2021-09-13 19:51:21 +02:00
SerpentSpirale
c0f9d73208 Adapted the double tap for ALL pointers 2021-09-13 19:51:21 +02:00
SerpentSpirale
eec850dfcc Fix buggy volume rocker key test 2021-09-13 19:51:21 +02:00
SerpentSpirale
54e9b421a3 Added double tap to swap second hand item 2021-09-13 19:51:21 +02:00
SerpentSpirale
978f029958 Clear focus when mouse grab is false 2021-09-13 19:51:20 +02:00
SerpentSpirale
b14a228f4d Throw multiple items when hotbar is still pressed 2021-09-13 19:51:20 +02:00
SerpentSpirale
6e948efab0 Desync drop items gesture from gesture timer 2021-09-13 19:51:20 +02:00