File tree Expand file tree Collapse file tree 3 files changed +25
-9
lines changed
java/vavi/games/input/listener Expand file tree Collapse file tree 3 files changed +25
-9
lines changed Original file line number Diff line number Diff line change 5
5
6
6
<groupId >vavi</groupId >
7
7
<artifactId >vavi-apps-hub</artifactId >
8
- <version >0.0.4 </version >
8
+ <version >0.0.5 </version >
9
9
10
10
<properties >
11
11
<javapackager .name>Hub</javapackager .name>
71
71
72
72
<additionalResources >
73
73
<additionalResource >${project.build.resources[0].directory} /logging.properties</additionalResource >
74
+ <additionalResource >${project.build.resources[0].directory} /minecraft.properties</additionalResource >
74
75
<additionalResource >${project.build.resources[0].directory} /static</additionalResource >
75
76
<additionalResource >local.properties</additionalResource >
76
77
</additionalResources >
176
177
<dependency >
177
178
<groupId >com.github.umjammer</groupId > <!-- vavi / com.github.umjammer -->
178
179
<artifactId >vavi-awt-joystick</artifactId >
179
- <version >0.0.11 </version >
180
+ <version >0.0.12 </version >
180
181
</dependency >
181
182
182
183
<dependency >
189
190
<dependency >
190
191
<groupId >jakarta.websocket</groupId >
191
192
<artifactId >jakarta.websocket-api</artifactId >
192
- <version >2.1.1 </version >
193
+ <version >2.2.0-M1 </version >
193
194
</dependency >
194
195
<dependency >
195
196
<groupId >org.eclipse.jetty.ee10.websocket</groupId >
253
254
<dependency >
254
255
<groupId >org.slf4j</groupId >
255
256
<artifactId >slf4j-jdk14</artifactId >
256
- <version >2.0.11 </version >
257
+ <version >2.0.13 </version >
257
258
</dependency >
258
259
<dependency >
259
260
<groupId >com.github.umjammer</groupId >
Original file line number Diff line number Diff line change 11
11
import java .awt .MouseInfo ;
12
12
import java .awt .Point ;
13
13
import java .awt .Rectangle ;
14
+ import java .io .IOException ;
14
15
import java .util .NoSuchElementException ;
16
+ import java .util .Properties ;
15
17
import java .util .concurrent .Executors ;
16
18
import java .util .concurrent .atomic .AtomicReference ;
17
19
import java .util .logging .Level ;
@@ -58,11 +60,17 @@ public class MinecraftListener extends GamepadAdapter {
58
60
private static final String bundleId = "com.mojang.Minecraft" ;
59
61
60
62
/** minecraft launchers descriptor#dusplayName */
61
- private static final String [] mcLaunchers = {
62
- "net.minecraft.client.main.Main" , // mc launcher -> original
63
- "net.fabricmc.loader.impl.launch.knot.KnotClient" , // mc launcher -> fabric
64
- "org.prismlauncher.EntryPoint" // prism launcher
65
- };
63
+ private static final String [] mcLaunchers ;
64
+
65
+ static {
66
+ try {
67
+ Properties props = new Properties ();
68
+ props .load (MinecraftListener .class .getResourceAsStream ("/minecraft.properties" ));
69
+ mcLaunchers = props .stringPropertyNames ().toArray (String []::new );
70
+ } catch (IOException e ) {
71
+ throw new IllegalStateException (e );
72
+ }
73
+ }
66
74
67
75
private long prevForBounds ;
68
76
Original file line number Diff line number Diff line change
1
+ # mc launcher -> original\
2
+ net.minecraft.client.main.Main
3
+ # mc launcher -> fabric
4
+ net.fabricmc.loader.impl.launch.knot.KnotClient
5
+ net.fabricmc.devlaunchinjector.Main
6
+ # prism launcher
7
+ org.prismlauncher.EntryPoint
You can’t perform that action at this time.
0 commit comments