Commit graph

95 commits

Author SHA1 Message Date
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
khanhduytran0
59345971dd Scrolling should works now :) 2021-04-27 16:32:49 +07:00
khanhduytran0
df41a166bc Changes
- Removed unused class ShellProcessOperation.java
- Correctly implemented touching 2 fingers for scrolling.
2021-04-26 14:21:54 +07:00
Duy Tran Khanh
acbf106f5d
Temp disable swipe2scroll due to strange behavior 2021-04-18 06:49:54 +07:00
artdeell
f258483d0a Hide all handle views when exiting 2021-02-25 14:04:18 +03:00
artdeell
3c405f962c Make the launcher fully reapply the layout after leaving the editor 2021-02-25 12:46:37 +03:00
artdeell
c7eabb5ec0 [WIP] LIVE controls editor
Note: Exiting the editor is done thru the "Save" menu
2021-02-24 22:31:34 +03:00
Duy Tran Khanh
3911e8ef11 [WIP] Ingame custom controls 2021-02-24 19:49:25 +07:00
Duy Tran Khanh
12ebe828fd
Attempt fix the v.mouse not shown after grab=false 2021-02-24 11:44:23 +07:00
Duy Tran Khanh
ec9c490c12
Update BaseMainActivity.java 2021-02-24 10:34:39 +07:00
khanhduytran0
3820760b61 Several unused codes cleanup; in-game change control (unfinished!) 2021-02-24 09:51:37 +07:00
artdeell
54d09b53a1 Mouse speed editor in settings + ingame 2021-02-22 14:26:44 +03:00