summaryrefslogtreecommitdiffhomepage
path: root/proto-libevdev/ftnoir_protocol_libevdev.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-13 07:46:21 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-13 07:46:21 +0100
commit9f06603e2d752f574b145bc3c4b5e453d7d306d0 (patch)
tree90d8415c98908a7249561682ed6e3a19a6e2b30f /proto-libevdev/ftnoir_protocol_libevdev.h
parent8451b16e88b25405d9877243b253a369fd953243 (diff)
proto/libevdev: buffer flush, WIP
Diffstat (limited to 'proto-libevdev/ftnoir_protocol_libevdev.h')
-rw-r--r--proto-libevdev/ftnoir_protocol_libevdev.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/proto-libevdev/ftnoir_protocol_libevdev.h b/proto-libevdev/ftnoir_protocol_libevdev.h
index 5606cbdf..7cf59053 100644
--- a/proto-libevdev/ftnoir_protocol_libevdev.h
+++ b/proto-libevdev/ftnoir_protocol_libevdev.h
@@ -7,13 +7,12 @@
#pragma once
#include "ui_ftnoir_libevdev_controls.h"
-#include <QMessageBox>
+#include "compat/macros.hpp"
#include "api/plugin-api.hpp"
+#include <libevdev/libevdev.h>
+#include <libevdev/libevdev-uinput.h>
-extern "C" {
-# include <libevdev/libevdev.h>
-# include <libevdev/libevdev-uinput.h>
-}
+#include <QMessageBox>
class evdev : public IProtocol
{
@@ -25,8 +24,11 @@ public:
}
void pose(const double *headpose);
QString game_name() {
- return otr_tr("Virtual joystick for Linux");
+ return _("Virtual joystick for Linux");
}
+
+ module_status initialize() override;
+
private:
struct libevdev* dev;
struct libevdev_uinput* uidev;
@@ -52,6 +54,6 @@ private slots:
class evdevDll : public Metadata
{
public:
- QString name() { return QString("libevdev joystick receiver"); }
+ QString name() { return _("libevdev joystick receiver"); }
QIcon icon() { return QIcon(":/images/linux.png"); }
};