Editbox catch ctrl+c Key input

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

FeiYun
Just popping in
Just popping in
Posts: 6
Joined: Fri May 22, 2009 09:01

Editbox catch ctrl+c Key input

Postby FeiYun » Sun May 31, 2009 06:17

Hi all

How can a Editbox can catch ctrl+c Key input

I use the answer in NetWork:
KeyEventArgs *kEvent = (KeyEventArgs*)(&args);
switch (kEvent->codepoint)
{
case 3:
......;
}

but when I try that, the codepoint aslo = -858993460 so it's the wrong answer
I want to ask how to catch ctrl+c Key input
Thank you!

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Editbox catch ctrl+c Key input

Postby CrazyEddie » Sun May 31, 2009 19:29

Hi,

the codepoint field is only valid for character input (and not, for example, key up / key down events).

HTH

CE.

FeiYun
Just popping in
Just popping in
Posts: 6
Joined: Fri May 22, 2009 09:01

Re: Editbox catch ctrl+c Key input

Postby FeiYun » Mon Jun 01, 2009 02:52

Thank you CE


Return to “Help”

Who is online

Users browsing this forum: No registered users and 5 guests