Fix chording problem.

This commit is contained in:
LambdAurora
2020-07-20 19:22:18 +02:00
parent 7dcbda7e57
commit f889fc6367
4 changed files with 19 additions and 12 deletions

View File

@@ -345,6 +345,11 @@ public class InputManager
else else
state = ButtonState.NONE; state = ButtonState.NONE;
} }
if (state == ButtonState.RELEASE && !binding.pressed) {
state = ButtonState.NONE;
}
binding.pressed = state.isPressed(); binding.pressed = state.isPressed();
binding.update(); binding.update();
if (binding.pressed) if (binding.pressed)

View File

@@ -32,7 +32,7 @@
], ],
"depends": { "depends": {
"fabricloader": ">=0.8.0", "fabricloader": ">=0.8.0",
"fabric": "*", "fabric": ">=0.4.0",
"minecraft": ">=1.16", "minecraft": ">=1.16",
"spruceui": ">=1.5.2" "spruceui": ">=1.5.2"
}, },

View File

@@ -8,12 +8,12 @@ org.gradle.jvmargs=-Xmx1G
loader_version=0.9.0+build.204 loader_version=0.9.0+build.204
# Mod Properties # Mod Properties
mod_version = 1.4.1 mod_version = 1.4.2
maven_group = me.lambdaurora.lambdacontrols maven_group = me.lambdaurora.lambdacontrols
archives_base_name = lambdacontrols archives_base_name = lambdacontrols
# Dependencies # Dependencies
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api # currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
fabric_version=0.15.0+build.379-1.16.1 fabric_version=0.15.0+build.379-1.16.1
spruceui_version=1.5.9 spruceui_version=1.5.11
modmenu_version=1.12.2+build.17 modmenu_version=1.12.2+build.17

View File

@@ -21,6 +21,8 @@ dependencies {
} }
api 'org.spigotmc:spigot-api:1.15.1-R0.1-SNAPSHOT' api 'org.spigotmc:spigot-api:1.15.1-R0.1-SNAPSHOT'
api 'io.netty:netty-all:4.1.28.Final' api 'io.netty:netty-all:4.1.28.Final'
implementation "com.electronwill.night-config:core:3.5.3"
implementation "com.electronwill.night-config:toml:3.5.3"
} }
processResources { processResources {