Archive 17/01/2023.

GetKeyDown executes multiple times

sabotage3d

Is that the normal behaviour of GetKeyDown to execute more than once on a single key press? For example the code below executes Run() more than 10 times when the key R is pressed only once is that expected?

void Update(float timeStep) { Input* input = GetSubsystem<Input>(); if (input->GetKeyDown('R')) { Run(); } }

1vanK

use GetKeyPress()

sabotage3d

Thanks that works as expected.