QVFbView::~QVFbView() { stopAnimation(); sendKeyboardData( 0, 0, 0, TRUE, FALSE ); // magic die key delete qwslock; struct shmid_ds shm; shmdt( (char*)data ); shmctl( shmId, IPC_RMID, &shm ); ::close( mouseFd ); ::close( keyboardFd ); unlink( mousePipe ); unlink( keyboardPipe ); }
QVFbKeyPipeProtocol::~QVFbKeyPipeProtocol() { sendKeyboardData(0, 0, 0, true, false); // magic die key ::close(fd); unlink(fileName.toLocal8Bit().constData()); }
void QVFbView::keyReleaseEvent( QKeyEvent *e ) { sendKeyboardData(e->ascii(), e->key(), e->stateAfter()&(ShiftButton|ControlButton|AltButton), FALSE, e->isAutoRepeat()); }
void QVFbView::keyPressEvent( QKeyEvent *e ) { sendKeyboardData(e->text()[0].unicode(), e->key(), e->stateAfter()&(ShiftButton|ControlButton|AltButton), TRUE, e->isAutoRepeat()); }