From 7a0a00fde86468ddf5d6877a96a3e23ed123bb0a Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 17 Nov 2016 11:17:57 -0500 Subject: Get a bit more of the input device class working - using lumina-config for testing on the new "mouse" page (which is still disabled for the moment). --- src-qt5/core-utils/lumina-config/pages/page_mouse.cpp | 16 ++++++++++++++-- src-qt5/core-utils/lumina-config/pages/page_mouse.h | 3 +++ 2 files changed, 17 insertions(+), 2 deletions(-) (limited to 'src-qt5/core-utils/lumina-config/pages') 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 devices = LInput::listDevices(); + for(int i=0; iisPointer()){ + ::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 + namespace Ui{ class page_mouse; }; @@ -26,6 +28,7 @@ public slots: private: Ui::page_mouse *ui; + QList devices; private slots: void accelChanged(int val); -- cgit