aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core-utils/lumina-config/pages
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/core-utils/lumina-config/pages')
-rw-r--r--src-qt5/core-utils/lumina-config/pages/page_mouse.cpp16
-rw-r--r--src-qt5/core-utils/lumina-config/pages/page_mouse.h3
2 files changed, 17 insertions, 2 deletions
diff --git a/src-qt5/core-utils/lumina-config/pages/page_mouse.cpp b/src-qt5/core-utils/lumina-config/pages/page_mouse.cpp
index 675a8b25..0dabdf2d 100644
--- a/src-qt5/core-utils/lumina-config/pages/page_mouse.cpp
+++ b/src-qt5/core-utils/lumina-config/pages/page_mouse.cpp
@@ -14,11 +14,23 @@
page_mouse::page_mouse(QWidget *parent) : PageWidget(parent), ui(new Ui::page_mouse()){
ui->setupUi(this);
connect(ui->slider_accel, SIGNAL(valueChanged(int)), this, SLOT(accelChanged(int)) );
- updateIcons();
+ updateIcons();
+ qDebug() << "List Devices:";
+ QList<LInputDevice*> devices = LInput::listDevices();
+ for(int i=0; i<devices.length(); i++){
+ if(!devices[i]->isPointer()){
+ ::free( devices.takeAt(i));
+ i--;
+ }else{
+ qDebug() << "Found Pointer:" << devices[i]->devNumber();
+ qDebug() << " - isExtension:" << devices[i]->isExtension();
+ devices[i]->listProperties();
+ }
+ }
}
page_mouse::~page_mouse(){
-
+ for(int i=0; i<devices.length(); i++){ ::free(devices[i]); }
}
//================
diff --git a/src-qt5/core-utils/lumina-config/pages/page_mouse.h b/src-qt5/core-utils/lumina-config/pages/page_mouse.h
index f005760f..849917c5 100644
--- a/src-qt5/core-utils/lumina-config/pages/page_mouse.h
+++ b/src-qt5/core-utils/lumina-config/pages/page_mouse.h
@@ -9,6 +9,8 @@
#include "../globals.h"
#include "PageWidget.h"
+#include <LInputDevice.h>
+
namespace Ui{
class page_mouse;
};
@@ -26,6 +28,7 @@ public slots:
private:
Ui::page_mouse *ui;
+ QList<LInputDevice*> devices;
private slots:
void accelChanged(int val);
bgstack15