[Controller] wip on passing device as argument
This commit is contained in:
parent
b4a498aa20
commit
043317e3e5
2 changed files with 9 additions and 4 deletions
2
Hardware/3rdparty/bugui
vendored
2
Hardware/3rdparty/bugui
vendored
|
@ -1 +1 @@
|
|||
Subproject commit b4287d3aa4052cd165c4c783cb433cfffb381689
|
||||
Subproject commit 766665812f73b11beb05411727008790ba2e0ff1
|
|
@ -5,11 +5,18 @@
|
|||
|
||||
#include "Controller.hpp"
|
||||
|
||||
#include <devices/Launchpad_Pro_Standalone.hpp>
|
||||
|
||||
struct test
|
||||
{
|
||||
using type = Launchpad_Pro_Standalone;
|
||||
};
|
||||
|
||||
namespace Hardware
|
||||
{
|
||||
Controller::Controller(const score::DocumentContext& document,
|
||||
Scenario::IntervalModel& i)
|
||||
: bugui::controller<Controller>{}
|
||||
: bugui::controller<Controller>{test{}}
|
||||
, doc{document}
|
||||
, interval{&i}
|
||||
, h_ofset{0.} // initial horizontal ofset
|
||||
|
@ -28,8 +35,6 @@ Controller::Controller(const score::DocumentContext& document,
|
|||
connect(scnr,
|
||||
&Scenario::ProcessModel::intervalMoved,
|
||||
[this] { update(); });
|
||||
|
||||
setup();
|
||||
}
|
||||
|
||||
void Controller::on_interval_changed(const Scenario::IntervalModel&)
|
||||
|
|
Loading…
Add table
Reference in a new issue