mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-12-15 15:30:21 -08:00
OK NOW ITS DONE I SWEAR
This commit is contained in:
parent
8c9ae3f6ab
commit
87e0a2d032
1 changed files with 8 additions and 7 deletions
|
|
@ -117,7 +117,8 @@ func map_event_to_action(event, idx := 0) -> void:
|
|||
elif type == 1 and (i is InputEventJoypadButton or i is InputEventJoypadMotion):
|
||||
matching_type_events.append(i)
|
||||
if matching_type_events.size() - 1 < idx or matching_type_events.is_empty():
|
||||
matching_type_events.append(event)
|
||||
events.append(event)
|
||||
else:
|
||||
replace_event = matching_type_events[clamp(idx, 0, matching_type_events.size() - 1)]
|
||||
var itr := 0
|
||||
for i in events:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue