Hi,
Did someone already looked at the problem of implementing key repeatitions? Ie. when user presses a key and holds it, the system starts repeating it after a while.
Greetings,
Guyver
Key repeatition
Moderators: CEGUI MVP, CEGUI Team
Thanks for the reply.
I was thinking a little about it thou. I found out that there are 2 key input events, KeyDown and KeyUp. That feature would require KeyPressed event, if it would work like Windows. KeyPressed would be the one bearing character and on that one controls would react showing new character, while KeyDown would be only the event of user pressing the key on keyboard down. Then we could repeat KeyPressed events internally until KeyUp is encountered for that key.
EDIT: Me stupid There is already EventCharacterKey. So let me try this...
I was thinking a little about it thou. I found out that there are 2 key input events, KeyDown and KeyUp. That feature would require KeyPressed event, if it would work like Windows. KeyPressed would be the one bearing character and on that one controls would react showing new character, while KeyDown would be only the event of user pressing the key on keyboard down. Then we could repeat KeyPressed events internally until KeyUp is encountered for that key.
EDIT: Me stupid There is already EventCharacterKey. So let me try this...
Return to “CEGUI Library Development Discussion”
Who is online
Users browsing this forum: No registered users and 2 guests