summaryrefslogtreecommitdiffhomepage
path: root/proto-libevdev
diff options
context:
space:
mode:
Diffstat (limited to 'proto-libevdev')
-rw-r--r--proto-libevdev/ftnoir_protocol_libevdev.cpp8
-rw-r--r--proto-libevdev/ftnoir_protocol_libevdev.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/proto-libevdev/ftnoir_protocol_libevdev.cpp b/proto-libevdev/ftnoir_protocol_libevdev.cpp
index 96411ae3..8b8e294e 100644
--- a/proto-libevdev/ftnoir_protocol_libevdev.cpp
+++ b/proto-libevdev/ftnoir_protocol_libevdev.cpp
@@ -12,7 +12,7 @@ static const int max_input = 65535;
static const int mid_input = 32767;
static const int min_input = 0;
-FTNoIR_Protocol::FTNoIR_Protocol() : dev(NULL), uidev(NULL)
+evdev::evdev() : dev(NULL), uidev(NULL)
{
int error = 0;
@@ -61,7 +61,7 @@ error:
dev = NULL;
}
-FTNoIR_Protocol::~FTNoIR_Protocol()
+evdev::~evdev()
{
if (uidev)
libevdev_uinput_destroy(uidev);
@@ -69,7 +69,7 @@ FTNoIR_Protocol::~FTNoIR_Protocol()
libevdev_free(dev);
}
-void FTNoIR_Protocol::pose(const double* headpose) {
+void evdev::pose(const double* headpose) {
static const int axes[] = {
/* translation goes first */
ABS_X, ABS_Y, ABS_Z, ABS_RX, ABS_RY, ABS_RZ
@@ -94,4 +94,4 @@ void FTNoIR_Protocol::pose(const double* headpose) {
(void) libevdev_uinput_write_event(uidev, EV_SYN, SYN_REPORT, 0);
}
-OPENTRACK_DECLARE_PROTOCOL(FTNoIR_Protocol, LibevdevControls, FTNoIR_ProtocolDll)
+OPENTRACK_DECLARE_PROTOCOL(evdev, LibevdevControls, evdevDll)
diff --git a/proto-libevdev/ftnoir_protocol_libevdev.h b/proto-libevdev/ftnoir_protocol_libevdev.h
index 79be398b..6f7e4695 100644
--- a/proto-libevdev/ftnoir_protocol_libevdev.h
+++ b/proto-libevdev/ftnoir_protocol_libevdev.h
@@ -15,11 +15,11 @@ extern "C" {
# include <libevdev/libevdev-uinput.h>
}
-class FTNoIR_Protocol : public IProtocol
+class evdev : public IProtocol
{
public:
- FTNoIR_Protocol();
- ~FTNoIR_Protocol() override;
+ evdev();
+ ~evdev() override;
bool correct() {
return dev != NULL;
}
@@ -49,7 +49,7 @@ private slots:
void doCancel();
};
-class FTNoIR_ProtocolDll : public Metadata
+class evdevDll : public Metadata
{
public:
QString name() { return QString("libevdev joystick receiver"); }