diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-05-09 15:34:38 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-05-09 15:34:38 +0200 |
commit | 780aca2622d907320a1cf462390f192fb3ae4b31 (patch) | |
tree | c7843a5ebe0620d8f97ae7ba86ba6f5d06ffc167 /proto-osc/proto.hpp | |
parent | c1de1499775d47a574bd52d07acbb269845fb75b (diff) | |
parent | 051fb2f94f6364b80219a3c671bb953d2e54a140 (diff) |
Merge branch 'master' into trackhat-sensor-v2
Diffstat (limited to 'proto-osc/proto.hpp')
-rw-r--r-- | proto-osc/proto.hpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/proto-osc/proto.hpp b/proto-osc/proto.hpp new file mode 100644 index 00000000..53a5dee4 --- /dev/null +++ b/proto-osc/proto.hpp @@ -0,0 +1,29 @@ +#pragma once + +/* Copyright (c) 2023 Stanislaw Halik <sthalik@misaki.pl> + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + */ + +#include "settings.hpp" +#include "api/plugin-api.hpp" +#include <QUdpSocket> +#include <QHostAddress> + +class osc_proto : public QObject, public IProtocol +{ + Q_OBJECT + + osc_settings s; + QUdpSocket sock; + QHostAddress dest; + unsigned short port = 0; + +public: + osc_proto(); + module_status initialize() override; + void pose(const double *headpose, const double*) override; + QString game_name() override { return tr("Open Sound Control"); } +}; |