-#include "multikbd.h"
-#include "ui_multikbd.h"
+#include "multypo.h"
#include <QX11Info>
#include <QDebug>
#include <X11/extensions/XInput2.h>
#include <X11/Xutil.h>
-MultiKBD::MultiKBD(QWidget *parent) :
+MultypoWindow::MultypoWindow(QWidget *parent) :
QWidget(parent),
- ui(new Ui::MultiKBD),
xiInited(false)
{
- ui->setupUi(this);
+
}
-MultiKBD::~MultiKBD()
+MultypoWindow::~MultypoWindow()
{
- delete ui;
}
-void MultiKBD::showEvent ( QShowEvent * )
+void MultypoWindow::showEvent ( QShowEvent * )
{
if (xiInited) return;
setFocus(Qt::OtherFocusReason);*/
}
-void MultiKBD::handleKeyPress(int device, QString string)
+void MultypoWindow::handleKeyPress(int device, QString string)
{
qDebug() << "Device" << device << "String" << string;
}
-bool MultiKBD::handleX11Event(XEvent *event)
+bool MultypoWindow::handleX11Event(XEvent *event)
{
if (!xiInited) return false;
Display *dpy = x11Info().display();