View Single Post
Old 12-08-2011, 11:57 PM   #11
h1uke
Zealot
h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.
 
Posts: 121
Karma: 82565
Join Date: Aug 2010
Location: Maryland, USA
Device: dxg, k3w,k4nt,kpw
Quote:
Originally Posted by geekmaster View Post
kill -CONT resumes the cvm process, but when it wakes up it wierds-out, asking if I want to "Delete Collection"... Hmm...
you have to grab ( ioctl(fd, EVIOCGRAB, on) ) all input devices in order to avoid
key presses to be put into CVM's input queue. See capture_input() and release_input() in launchpad/src/main.c

This technique is used in Qt keyboard driver for kindle. I even do not send kill -STOP / kill -CONT to CVM,
but grab all input devices if I want to run Qt application in a foreground.
h1uke is offline   Reply With Quote