You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
xygine has a function called setKeyRepeatEnabled which can be used to avoid firing events when a key is pressed. It is used in the following way: getRenderWindow()->setKeyRepeatEnabled(false);
Does crogine has something similar?
Right now if I left a key pressed, it keeps firing KEY_DOWN events.
The text was updated successfully, but these errors were encountered:
if (evt.type == SDL_KEYDOWN)
{
if (!evt.key.repeat)
{
//handle event
}
}
If it would be useful I could wrap this in a function to toggle repeated key presses by preventing any repeated events from being forward from the window.
Hi,
xygine has a function called setKeyRepeatEnabled which can be used to avoid firing events when a key is pressed. It is used in the following way:
getRenderWindow()->setKeyRepeatEnabled(false);
Does crogine has something similar?
Right now if I left a key pressed, it keeps firing KEY_DOWN events.
The text was updated successfully, but these errors were encountered: