Skip to content

Commit fa78108

Browse files
committed
Audit mixin flag
1 parent 0214fad commit fa78108

File tree

4 files changed

+10
-33
lines changed

4 files changed

+10
-33
lines changed

changelog.md

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,6 @@ This version has the following targets:
55

66
[![](https://short.isxander.dev/bisect-img)](https://short.isxander.dev/bisect)
77

8-
## Steam Deck Support
8+
## Changes
99

10-
The time has finally arrived: explicit Steam Deck support!
11-
12-
With a little bit of initial setup that Controlify will walk you through, Controlify will now be able to:
13-
14-
- Read the back buttons, gyro and touchpads of your Steam Deck
15-
- Intelligently pause the game when you open the Steam or Quick Access Menu.
16-
17-
Controlify does this be hooking into the internal JavaScript console that runs SteamOS. This allows Controlify a
18-
deep integration into SteamOS. Unfortunately, this deep access also comes at the cost that it all needs to be
19-
reverse-engineered.
20-
21-
Here are some features you should expect to see coming to Controlify very soon:
22-
23-
- Native screenshot handling - Taking a screenshot in the game will add it to the media library of the game, as well as bringing out the screenshot preview popup
24-
- Native keyboard handling - Instead of using the (admittedly crappy) built-in on-screen keyboard by Controlify, you will be able to use the Steam Deck one!
25-
26-
## Other Changes
27-
28-
- Target 1.21.1 rather than 1.21.0
29-
- Add FancyMenu compatibility - modpack creators can now assign a custom action that opens the controller list screen
30-
31-
## Bug Fixes
32-
33-
- Fix the global settings not saving when pressing 'Save'
34-
- Fix 'Out of Focus' look input breaking after resuming the game from pause menu
35-
- Fix crash on modded pause screen that deleted certain widgets
36-
- Fix multiple joystick with same HID data not being differentiated (currently hidden behind debug flag)
37-
- Fix Dualshock3 sprite scaling
38-
- Fix startup crash on 1.20.1 build
39-
- Catch "item group has no page" error and log the offending item group, fixes crash
40-
- Fix broken loading of custom controller mappings when a mapping includes a 'I don't have this input' option
10+
Added developer option to audit mixins

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
org.gradle.jvmargs=-Xmx4G
22

3-
modVersion=2.0.0-beta.15
3+
modVersion=2.0.0-beta.16
44
modId=controlify
55
modName=Controlify
66
modDescription=The most advanced controller mod for Minecraft.

src/main/java/dev/isxander/controlify/Controlify.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
import org.jetbrains.annotations.NotNull;
5151
import org.jetbrains.annotations.Nullable;
5252
import org.lwjgl.glfw.GLFW;
53+
import org.spongepowered.asm.mixin.MixinEnvironment;
5354

5455
import java.util.*;
5556
import java.util.concurrent.CompletableFuture;
@@ -105,6 +106,10 @@ public void preInitialiseControlify() {
105106

106107
CUtil.LOGGER.info("Pre-initializing Controlify...");
107108

109+
if (DebugProperties.MIXIN_AUDIT) {
110+
MixinEnvironment.getCurrentEnvironment().audit();
111+
}
112+
108113
this.inGameInputHandler = null; // set when the current controller changes
109114
this.virtualMouseHandler = new VirtualMouseHandler();
110115

src/main/java/dev/isxander/controlify/debug/DebugProperties.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ public class DebugProperties {
2626
public static final boolean SDL_USE_SERIAL_FOR_UID = boolProp("controlify.debug.sdl_use_serial_for_uid", false, false);
2727
/** Use a custom url to access CEF, you can use remote access here to receive control remotely. **/
2828
public static final @Nullable String STEAM_DECK_CUSTOM_CEF_URL = strProp("controlify.debug.steam_deck_custom_cef_url", null, null);
29+
/** Run a mixin audit - useful for last checks before releasing a mod version */
30+
public static final boolean MIXIN_AUDIT = boolProp("controlify.debug.mixin_audit", false, false);
2931

3032
public static void printProperties() {
3133
if (properties.stream().noneMatch(prop -> prop.state() != prop.def()))

0 commit comments

Comments
 (0)