Key repeatition

Discussion regarding the development of CEGUI itself - as opposed to questions about CEGUI usage that should be in the help forums.

Moderators: CEGUI MVP, CEGUI Team

guyver6
Just popping in
Just popping in
Posts: 11
Joined: Wed Jan 12, 2005 12:06
Contact:

Key repeatition

Postby guyver6 » Thu Jun 15, 2006 08:47

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

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Postby lindquist » Thu Jun 15, 2006 12:51

Nope, this wont be a feature of 0.5, unfortunately.

There's been alot todo and the priority on this has'nt been that great for me, so you will need to setup your own key repeat stuff.

guyver6
Just popping in
Just popping in
Posts: 11
Joined: Wed Jan 12, 2005 12:06
Contact:

Postby guyver6 » Thu Jun 15, 2006 14:55

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 :roll: 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 4 guests