diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-09-22 16:47:59 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-09-22 16:51:51 +0200 |
commit | e36f509d2459ca74c0dc7fe2e8ea2275b88f0649 (patch) | |
tree | 2f62ae2004ef9fb2dcaceb7ded7bd404e41bbd92 /proto-iokit-foohid | |
parent | 4063f006285db0473046bde645f236c814460eb0 (diff) |
api: expose raw data to protocols
Issue: #975
Diffstat (limited to 'proto-iokit-foohid')
-rw-r--r-- | proto-iokit-foohid/iokitprotocol.cpp | 2 | ||||
-rw-r--r-- | proto-iokit-foohid/iokitprotocol.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/proto-iokit-foohid/iokitprotocol.cpp b/proto-iokit-foohid/iokitprotocol.cpp index b66aeb7b..6f163d8f 100644 --- a/proto-iokit-foohid/iokitprotocol.cpp +++ b/proto-iokit-foohid/iokitprotocol.cpp @@ -47,7 +47,7 @@ static uint8_t valueToStick(FooHIDJoystick *stick, double min, double value, dou stick->minValue() + stick->range())); } -void IOKitProtocol::pose(const double *headpose) +void IOKitProtocol::pose(const double *headpose, const double*) { const uint8_t x = valueToStick(joystick.get(), -75., headpose[0], +75.); const uint8_t y = valueToStick(joystick.get(), -75., headpose[1], +75.); diff --git a/proto-iokit-foohid/iokitprotocol.h b/proto-iokit-foohid/iokitprotocol.h index 2590b382..8148e7ab 100644 --- a/proto-iokit-foohid/iokitprotocol.h +++ b/proto-iokit-foohid/iokitprotocol.h @@ -19,7 +19,7 @@ public: IOKitProtocol(); module_status initialize() override; - void pose(const double *headpose) final; + void pose(const double *headpose, const double*) final; QString game_name() final; private: |