Added Glitch Room Source code to Gitty

This commit is contained in:
Jeff Luke committed 2026-10-04 11:31:17 -07:00
commit 1ac9eb5644
505 files changed
+28504

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
@tool
class_name HardwareConfig
extends Resource
@export var controller_id: StringName = &""
@export var actions: Array[HardwareAction] = []
func get_action(action_id: StringName) -> HardwareAction:
for action in actions:
if action.action_id == action_id:
return action
return null
func has_action(action_id: StringName) -> bool:
return get_action(action_id) != null