Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | VinicOliver8394 |
The plugin works very well, but i don’t know how to use remap.find_duplicates()
func find_duplicates() -> Array:
var dupes: Array
print(dupes)
for action in ACTION_LIST:
var key1 := get_action_key(action)
if key1:
for action2 in ACTION_LIST:
if action == action2:
continue
var key2 := get_action_key(action2)
if key2:
if key1.scancode == key2.scancode:
dupes.append(action)
break
for action in ACTION_LIST:
if action in dupes:
continue
var button1 := get_action_button(action)
if button1:
for action2 in ACTION_LIST:
if action == action2:
continue
var button2 := get_action_button(action2)
if button2:
if button1.button_index == button2.button_index:
dupes.append(action)
break
return dupes