summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_protocol_libevdev
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-10-16 23:30:47 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-10-17 03:16:11 +0200
commitda46cf18a2c7ad56c53e9c02014f75c818d39ea3 (patch)
tree4fd27ab33e03ecff2859c363e2cd77b69791ec71 /ftnoir_protocol_libevdev
parent8905749b7949f10a3635faa13b44cba01a6edbe4 (diff)
change protocol ABI: sprinkle const. ABI BREAKAGE!
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'ftnoir_protocol_libevdev')
-rw-r--r--ftnoir_protocol_libevdev/ftnoir_protocol_libevdev.cpp2
-rw-r--r--ftnoir_protocol_libevdev/ftnoir_protocol_libevdev.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/ftnoir_protocol_libevdev/ftnoir_protocol_libevdev.cpp b/ftnoir_protocol_libevdev/ftnoir_protocol_libevdev.cpp
index fc01552e..70fde395 100644
--- a/ftnoir_protocol_libevdev/ftnoir_protocol_libevdev.cpp
+++ b/ftnoir_protocol_libevdev/ftnoir_protocol_libevdev.cpp
@@ -70,7 +70,7 @@ FTNoIR_Protocol::~FTNoIR_Protocol()
libevdev_free(dev);
}
-void FTNoIR_Protocol::sendHeadposeToGame( double *headpose, double *rawheadpose ) {
+void FTNoIR_Protocol::sendHeadposeToGame(const double* headpose) {
static const int axes[] = {
/* translation goes first */
ABS_X, ABS_Y, ABS_Z, ABS_RX, ABS_RY, ABS_RZ
diff --git a/ftnoir_protocol_libevdev/ftnoir_protocol_libevdev.h b/ftnoir_protocol_libevdev/ftnoir_protocol_libevdev.h
index e753269e..3c6f591c 100644
--- a/ftnoir_protocol_libevdev/ftnoir_protocol_libevdev.h
+++ b/ftnoir_protocol_libevdev/ftnoir_protocol_libevdev.h
@@ -25,7 +25,7 @@ public:
bool checkServerInstallationOK() {
return dev != NULL;
}
- void sendHeadposeToGame( double *headpose, double *rawheadpose );
+ void sendHeadposeToGame(const double *headpose);
QString getGameName() {
return "Virtual joystick for Linux";
}
@@ -45,7 +45,7 @@ public:
void showEvent ( QShowEvent *) {}
void Initialize(QWidget *);
- void registerProtocol(IProtocol *l) {}
+ void registerProtocol(IProtocol *) {}
void unRegisterProtocol() {}
private: