Fixed the function that is used to register the required input actions when the character has been copied to a different project. The previous code sent INPUT_ACTIONS[action] as the second argument to action_add_events(), which was read as an int. The new code instead creates a new local InputEvent with the associated Key enum instead.
Fixed the function that is used to register the required input actions when the character has been copied to a different project. The previous code sent
INPUT_ACTIONS[action]
as the second argument toaction_add_events()
, which was read as anint
. The new code instead creates a new localInputEvent
with the associated Keyenum
instead.