I set the binding to Started mode in C++, but when I press a key once in the game, the function is called twice. Does anyone know why this is happening?
The same action IA_Jump is bound twice, once for Triggered and once for Completed.
Triggered: The action was triggered. This means that it has completed the evaluation of all trigger requirements. For example, a “Press and Release” trigger is sent when the user releases the key.
Completed: The trigger evaluation process is completed.
I haven’t seen how you set up your input action, but I’ll assume you set the Trigger to “Pressed”, and if so, it means that Triggered and Completed are the same thing, so your function is called twice.
Read about trigger states here:
As for IA_E, I can’t tell what’s wrong unless I see how the input action is set up. There also might be something strange with your input context.
ok,The following situation doesn’t involve only the ‘e’ key; when I set the ‘w’ key to ‘started,’ it also triggered twice. Let me know if you need any additional information