[controller] more on passing devices as argument, only pass c_name for now
This commit is contained in:
parent
043317e3e5
commit
51046a8ca1
3 changed files with 3 additions and 10 deletions
2
Hardware/3rdparty/bugui
vendored
2
Hardware/3rdparty/bugui
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit 766665812f73b11beb05411727008790ba2e0ff1
|
Subproject commit 805aa0773c9330ac7c8db669845ae7485cb2ce8d
|
|
@ -5,18 +5,11 @@
|
||||||
|
|
||||||
#include "Controller.hpp"
|
#include "Controller.hpp"
|
||||||
|
|
||||||
#include <devices/Launchpad_Pro_Standalone.hpp>
|
|
||||||
|
|
||||||
struct test
|
|
||||||
{
|
|
||||||
using type = Launchpad_Pro_Standalone;
|
|
||||||
};
|
|
||||||
|
|
||||||
namespace Hardware
|
namespace Hardware
|
||||||
{
|
{
|
||||||
Controller::Controller(const score::DocumentContext& document,
|
Controller::Controller(const score::DocumentContext& document,
|
||||||
Scenario::IntervalModel& i)
|
Scenario::IntervalModel& i)
|
||||||
: bugui::controller<Controller>{test{}}
|
: bugui::controller<Controller>{"Launchpad_Pro_Standalone"}
|
||||||
, doc{document}
|
, doc{document}
|
||||||
, interval{&i}
|
, interval{&i}
|
||||||
, h_ofset{0.} // initial horizontal ofset
|
, h_ofset{0.} // initial horizontal ofset
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
namespace Hardware
|
namespace Hardware
|
||||||
{
|
{
|
||||||
class SCORE_ADDON_HARDWARE_EXPORT Controller
|
class SCORE_ADDON_HARDWARE_EXPORT Controller final
|
||||||
: public bugui::controller<Controller>
|
: public bugui::controller<Controller>
|
||||||
, public QObject
|
, public QObject
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue