Skip to content

Commit a1761e5

Browse files
authored
Merge pull request #3 from umjammer/0.0.4
0.0.4
2 parents bc47495 + 6f85209 commit a1761e5

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>vavi</groupId>
77
<artifactId>vavi-apps-hub</artifactId>
8-
<version>0.0.3</version>
8+
<version>0.0.4</version>
99

1010
<properties>
1111
<javapackager.name>Hub</javapackager.name>
@@ -176,7 +176,7 @@
176176
<dependency>
177177
<groupId>com.github.umjammer</groupId> <!-- vavi / com.github.umjammer -->
178178
<artifactId>vavi-awt-joystick</artifactId>
179-
<version>0.0.10</version>
179+
<version>0.0.11</version>
180180
</dependency>
181181

182182
<dependency>

src/main/java/vavi/apps/hub/Gamepad.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public class Gamepad implements Plugin {
2828

2929
static {
3030
System.setProperty("net.java.games.input.InputEvent.fillAll", "true");
31+
System.setProperty("net.java.games.input.ControllerEnvironment.excludes", "net.java.games.input");
3132

3233
System.setProperty("vavi.games.input.listener.period", "100");
3334
System.setProperty("vavi.games.input.listener.warmup", "500");

src/main/java/vavi/games/input/listener/MuseScoreListener.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
package vavi.games.input.listener;
88

9+
import java.util.Objects;
10+
911
import net.java.games.input.Event;
1012
import vavi.games.input.listener.GamepadInputEventListener.AppInfo;
1113
import vavi.games.input.listener.GamepadInputEventListener.Context;
@@ -34,7 +36,7 @@ public class MuseScoreListener extends GamepadAdapter {
3436

3537
@Override
3638
public boolean match(AppInfo a) {
37-
return a.id().equals(bundleId);
39+
return Objects.requireNonNullElse(a.id(), false).equals(bundleId);
3840
}
3941

4042
private Context context;

0 commit comments

Comments
 (0)