| Reply | « Previous Thread | Next Thread » |
|
How could I interrupt a sleep time imediatley after a kepress? In OPL it was done by giving a negative time value. How is it done in PS60?
PyNetMony - the ultimate War- and BlueWalking tool and 2G/3G Netmonitor http://pynetmony.googlepages.com/home |
|
Quote:
Still don't like them, but at least I now know how to go around crashes. Maybe this will help you: http://jouni.miettunen.googlepages.com/timersample When you get timers right, please check "keycapturer". That's pretty nice way to catch "any" keypress and start a callback where to cancel your timer. This might contain some sample code: http://jouni.miettunen.googlepages.com/watchme-lightnow Btw I recall "sleep" is dangerous, potential crash at exit. Timer with a callback is more safe, can be cancelled. Enjoy, --jouni |
|
Quote:
e32.ao_sleep would be more battery consuming rather than the timers. I guess jouni doesn't like the timers because its difficult to manipulate them according to the statements used. But carknue, you have a ready to use code for timer at Jouni's website ![]() Cheers, Croozeus |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| sleep? | zwgoal | General Symbian C++ | 1 | 2005-11-24 09:38 |
| keyPressed in GameCanvas vs. animation threading (help?) | murid | Mobile Java General | 0 | 2005-10-27 16:50 |
| KeyPressed() and getKeyEvents in the same time | darkermaster | Mobile Java General | 1 | 2004-06-03 04:13 |
| timeout? sleep? | y10913 | Symbian Tools & SDKs | 2 | 2004-02-06 19:08 |
| Series 60 keyPressed | fmhunter | Mobile Java Tools & SDKs | 1 | 2002-10-27 15:13 |