[controller] more on passing devices as argument, only pass c_name for now

This commit is contained in:
thibaud keller 2024-12-12 00:02:40 +00:00
parent 043317e3e5
commit 51046a8ca1
3 changed files with 3 additions and 10 deletions

@ -1 +1 @@
Subproject commit 766665812f73b11beb05411727008790ba2e0ff1
Subproject commit 805aa0773c9330ac7c8db669845ae7485cb2ce8d

View file

@ -5,18 +5,11 @@
#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>{test{}}
: bugui::controller<Controller>{"Launchpad_Pro_Standalone"}
, doc{document}
, interval{&i}
, h_ofset{0.} // initial horizontal ofset

View file

@ -10,7 +10,7 @@
namespace Hardware
{
class SCORE_ADDON_HARDWARE_EXPORT Controller
class SCORE_ADDON_HARDWARE_EXPORT Controller final
: public bugui::controller<Controller>
, public QObject
{