newlc.com
Articles Only
Forum Only
Community
World-Wide Web
Symbian OS
iPhone
Windows Mobile
Mobile Linux
Forums
Last forum posts
Home
::
Forums
::
Symbian
::
Symbian C++
Username:
*
Password:
*
Create new account
Request new password
how to use EModifierAutorepeatable ??
Login
to reply to this topic.
Tue, 2005-04-26 11:59
cat
Joined: 2005-02-23
Forum posts: 4
my code is as follow:
TInt scode=0;
TRawEvent aEvent;
//send keydown event
aEvent.Set(TRawEvent::EKeyDown, scode);
ccoeenv->WsSession().SimulateRawEvent(aEvent);
//send keypress event
TKeyEvent aKeyEvent;
aKeyEvent.iCode = code;
//trying to autorepeat a code=0 crashes
aKeyEvent.iModifiers = EModifierAutorepeatable;
aKeyEvent.iRepeats = 1;
aKeyEvent.iScanCode = scode;
ccoeenv->WsSession().SimulateKeyEvent(aKeyEvent);
for the most keys,it's OK,but it's so strange that some keys cant stop when it's begin to repeat ,can anyone tell me why ??
Thanks very much for any advance !!!
Login
or
register
to post in forums
- Report To Moderator -
Professional
Services
Development
Consulting
Training
About NewLC
Commitments
References
Contact
copyright 2003-2009 NewLC SARL