Commit graph

106 commits

Author SHA1 Message Date
SerpentSpirale
ee0b715061 Gamepad pointer size is now dynamic ! 2021-07-22 22:02:17 +02:00
SerpentSpirale
00e60ee3bd Tweak KeyEvent filtering 2021-07-22 22:02:17 +02:00
SerpentSpirale
047a9f6043 W.I.P dynamic pointer size according to GUI scale 2021-07-22 22:02:17 +02:00
SerpentSpirale
52f23f33a9 Proper filtering of fallback keyevents 2021-07-22 22:02:17 +02:00
SerpentSpirale
606d633ee3 Add more filters while dispatching events. 2021-07-22 22:02:17 +02:00
SerpentSpirale
4f0bae9431 Optimize mouse movements a very little. 2021-07-22 22:02:17 +02:00
SerpentSpirale
f35b880413 optimize keyEvents by checking only changes in state 2021-07-22 22:02:17 +02:00
SerpentSpirale
caf7073866 Fix pointer out of range. 2021-07-22 22:02:16 +02:00
SerpentSpirale
af27b0e09a Better persistence of the pointer index. 2021-07-22 22:02:16 +02:00
SerpentSpirale
153e991806 Clean up, keyboard is faster now 2021-07-22 22:02:16 +02:00
SerpentSpirale
f7ef779d05 Transition to the efficient keycode converter. 2021-07-22 22:02:16 +02:00
SerpentSpirale
bc4e6e7c16 Clean up code. 2021-07-22 22:02:15 +02:00
SerpentSpirale
003e17a12c The mouse is now butter smooth. 2021-07-22 22:02:15 +02:00
SerpentSpirale
14bf84fbe0 Slight performance optimization for mouse users. 2021-07-22 22:02:15 +02:00
SerpentSpirale
8c17dff2d7 Removed useless instructions since they are supplented by others in the Motion Event. 2021-07-22 22:02:14 +02:00
SerpentSpirale
6742d98baf Clean up code. 2021-07-22 22:02:14 +02:00
SerpentSpirale
876ae5c285 Optimized how many times we use handle GUI bar function. 2021-07-22 22:02:14 +02:00
SerpentSpirale
2d818e8786 Set a lower priority for the mouseGrab thread. 2021-07-22 22:02:14 +02:00
SerpentSpirale
af1f0d678b Ooops I was sending a mouse click as a keyboard press... 2021-07-22 22:02:14 +02:00
SerpentSpirale
573c7c3483 Fix a missing test 2021-07-22 22:02:14 +02:00
SerpentSpirale
fc00455a48 Remove two instructions 2021-07-22 22:02:14 +02:00
SerpentSpirale
cbc024c029 Simplified onTouch code structure.
Added bugs.
2021-07-22 22:02:14 +02:00
SerpentSpirale
3099301645 Clean up onTouch function 2021-07-22 22:02:14 +02:00
SerpentSpirale
9ac66cd3c8 Tweak scroll feature to be less resolution dependent and more friendly to use. 2021-07-22 22:02:13 +02:00
SerpentSpirale
ee00a737d4 more accurate gamepad deadzone detection 2021-07-22 22:02:13 +02:00
SerpentSpirale
e77499778f Introduced unified mouse sensitivity. 2021-07-22 22:02:13 +02:00
SerpentSpirale
7132a576bf Clean up some code 2021-07-22 22:02:12 +02:00
SerpentSpirale
283634cba2 the touchpad mouse tracking is good now ! 2021-07-22 22:02:12 +02:00
SerpentSpirale
7ed4607bc8 Fix jumping when jungling between pointers 2021-07-22 22:02:12 +02:00
SerpentSpirale
a3fb8317b6 Fix in-menu behavior 2021-07-22 22:02:12 +02:00
SerpentSpirale
e8e4089e91 Add a more robust camera tracking 2021-07-22 22:02:12 +02:00
SerpentSpirale
62ac772904 Clean up some code 2021-07-22 22:02:12 +02:00
SerpentSpirale
4edb0ebe34 New deadzone system + auto-grab controller 2021-07-22 21:56:34 +02:00
SerpentSpirale
91c04a15c3 Introduce the gamepad feature for testing. 2021-07-22 21:56:34 +02:00
SerpentSpirale
0fa13e2328 Clean BaseMainActivity 2021-07-22 21:56:33 +02:00
artdeell
67fac9a610 Changes
"Localize" renderer selection mechanism to several other classes
Add renderer changer to Per-Version Config
Move Per-Version Config to a separate class
2021-07-22 16:20:38 +03:00
artdeell
b220955614 Hotfix for OptiFine 2021-07-15 13:42:53 +03:00
artdeell
b8a25f3791 Make use of the runtime selected in Per-Version config 2021-07-15 11:49:38 +03:00
artdeell
4fc232cc16 Actual useful multi-runtime
Note: it's not yet exposed in Per-Version-Config and doesn't select automatically for versions that require certain runtimes
2021-07-14 20:32:29 +03:00
artdeell
0020c4deb2 Remove the Thread.sleep in BaseMainActivity, make MCOptionUtils use ArrayMap instead of List 2021-07-04 14:59:44 +03:00
Duy Tran Khanh
a45bf16601
Update BaseMainActivity.java 2021-07-04 11:19:42 +07:00
Duy Tran Khanh
3c8aef2838
Should help #1617 2021-07-04 08:24:57 +07:00
Boulay Mathias
14d9d2b177
Slight clean up of MCOptionsUtils (#1586)
* Clean up MCOptionUtils.java

* Use of explicit type conversion to string.
2021-06-25 05:11:58 +07:00
Duy Tran Khanh
4a90c8f124
Merge Zink renderer to upstream (#1585)
* OSMesa EGLBridge

* It renders a gray screen with Zink!

* Image

* Added missing file: gl/glext.h

* Added jniLibs/arm64-v8a/libOSMesa_8.so

* Load built-in libOSMesa when dev lib not available

* Added jniLibs/x86_64/libOSMesa_8.so

* Start trying to use Android's internal APIs to manage framebuffers

* Automatic stride to un-broke the image

* DMA

* Update lwjgl3 version

* Update LauncherPreferences.java

Temporary force set, to fix #1121

* Remove ndk.abiFilters

* Re-add ndk.abiFilters but for 64bit archs only

* Fixed x86_64 libOSMesa_8.so

* Fix buffer size

* [WIP] Force enable VK ext for GL 3.0

* WIP force ext

* Attempt get Zink GL 3.0 by force enable some exts

* Just missing ;;

* Mesa3D: set OpenGL version to 4.6

* Added Zink to renderer list

* Fixed the renderer check

* Maybe correct the switch between gl4es and zink

* Update JREUtils.java

fixes from https://github.com/sp614x/optifine/issues/420

* also set glsl version

* [NOT TESTED] (DO NOT TRY DEVS ONLY) upstream mesa to staging mesa branch

* upstream mesa once again

* Revert "upstream mesa once again"

This reverts commit ccb0f429b707c6fed1376809bb978e7eb8230222.

* add arm32

* Enable building for arm32

* Attempt fix auto change to libname libOSMesa

* Attempt fix (2/2)?

* Added missed `break`, should fix gl4es crashes

* Update JREUtils.java

* Support OpenJDK 17 runtime environment (internal)

* Update JREUtils.java

* [zink] use RGBA instead of RGB

Some mobile GPUs does not support RGB format, so switching to RGBA is necessary. However, native window is set to RGBX to ignore alpha channel.

* Move jreReleaseList to here

* Update BaseMainActivity.java

* Fixes (#1525)

* import java.util.Map
* fix: String cannot be converted to boolean
* Fixes
* Put readJREReleaseProperties to try catch

* Remove loading libtinyiconv.so (statically linked)

* lets do this

* upsteam to the staging branch of 21.0

* [zink] exports OpenGL 4.6 again

Limit OpenGL version does nothing other than deny the game to use it, so limiting is probably useless. Also, this is a lie that user see "export OpenGL 4.6" in renderer list but see "OpenGL 3.2" when enter game. Therefore, change back to OpenGL 4.6.

* New string: mcn_check_fail_vulkan_support

* [not yet finish] error if GPU doesn’t have Vulkan

* [not yet finished] error if vulkan is unsupported

* Additional checks for Vulkan support state

* Changes about gl4es renderers

* Define new renderer: opengles2_5 g4es 1.1.4

Also, change how gl4es renderers works

* Filter out "_5"

* Don’t allow custom OpenGL libname from jvm args

* Update strings.xml

* Update headings_array.xml

* Update headings_array.xml

* Update strings.xml

* Unreachable code

* Enable build for 32-bit x86 (zink not added!)

* Changes from upstream and security changes (#1575)

* import java.util.Map

* fix: String cannot be converted to boolean

* Fixes

* Put readJREReleaseProperties to try catch

* Attempt to redirect signal handler to JVM

* @artdeell: missed \n in printf

* Missed include errno.h

* Comment out last changes

* try and optimise gl4es with flags

* corect format

* dont shrink textures

* does notting

* Fix issue #1199

* Filter out Session ID on new log pipe

* int index

* Debug: print all env vars to latestlog.txt

Co-authored-by: artdeell
Co-authored-by: rhjdvsgsgks
Co-authored-by: LegacyGamerHD
Co-authored-by: Boulay Mathias
2021-06-24 19:51:56 +07:00
Duy Tran Khanh
ab8c1e74e4
(3/?) move session id filter 2021-06-22 09:29:58 +07:00
Duy Tran Khanh
adb4161542
fix: String cannot be converted to boolean 2021-06-12 05:48:31 +07:00
Duy Tran Khanh
18f251e9c6
Print selected Minecraft version to latestlog.txt 2021-06-12 05:18:02 +07:00
Duy Tran Khanh
6b162101d9
Move jreReleaseList 2021-06-12 04:58:18 +07:00
Duy Tran Khanh
1484a80572
Move jreReleaseList here 2021-06-12 04:53:33 +07:00
khanhduytran0
6f5a365455 fix commit come after regular commit:) 2021-04-27 16:40:22 +07:00