addon for remapping inputs
update event type check with regards to https://github.com/godotengine/godot/pull/73489
| -rw-r--r-- | addons/remap/package.json | 4 | ||||
| -rw-r--r-- | addons/remap/private/RemapUtilities.gd | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/addons/remap/package.json b/addons/remap/package.json index 1b24009..bd84ab5 100644 --- a/addons/remap/package.json +++ b/addons/remap/package.json @@ -1,6 +1,6 @@ { "name": "@bendn/remap", - "version": "5.0.7", + "version": "5.0.8", "description": "godot input remapping", "main": "InteractiveActionLabel.gd", "scripts": { @@ -20,4 +20,4 @@ "url": "https://github.com/bend-n/remap/issues" }, "homepage": "https://github.com/bend-n/remap#readme" -}
\ No newline at end of file +} diff --git a/addons/remap/private/RemapUtilities.gd b/addons/remap/private/RemapUtilities.gd index 81e77e9..d4814ed 100644 --- a/addons/remap/private/RemapUtilities.gd +++ b/addons/remap/private/RemapUtilities.gd @@ -17,6 +17,6 @@ static func add_action(action: String, event: InputEvent) -> void: static func is_valid_action(e: InputEvent) -> bool: var good_events := [InputEventKey, InputEventMouseButton, InputEventJoypadButton, InputEventJoypadMotion] for g_e in good_events: - if e is g_e: + if is_instance_of(e, g_e): return true return false |