mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-14 18:57:07 -07:00
Connect all available controllers in GUI (#380)
This commit is contained in:
parent
fc5306cfdd
commit
dff9844132
4 changed files with 28 additions and 19 deletions
|
@ -41,7 +41,7 @@ class ControllerManager : public QObject
|
|||
ControllerManager(QObject *parent = nullptr);
|
||||
~ControllerManager();
|
||||
|
||||
QList<int> GetAvailableControllers();
|
||||
QSet<int> GetAvailableControllers();
|
||||
Controller *OpenController(int device_id);
|
||||
|
||||
signals:
|
||||
|
|
|
@ -68,7 +68,7 @@ class StreamSession : public QObject
|
|||
ChiakiOpusDecoder opus_decoder;
|
||||
bool connected;
|
||||
|
||||
Controller *controller;
|
||||
QHash<int, Controller *> controllers;
|
||||
#if CHIAKI_GUI_ENABLE_SETSU
|
||||
Setsu *setsu;
|
||||
QMap<QPair<QString, SetsuTrackingId>, uint8_t> setsu_ids;
|
||||
|
@ -111,7 +111,7 @@ class StreamSession : public QObject
|
|||
|
||||
void SetLoginPIN(const QString &pin);
|
||||
|
||||
Controller *GetController() { return controller; }
|
||||
QList<Controller *> GetControllers() { return controllers.values(); }
|
||||
VideoDecoder *GetVideoDecoder() { return video_decoder; }
|
||||
#if CHIAKI_LIB_ENABLE_PI_DECODER
|
||||
ChiakiPiDecoder *GetPiDecoder() { return pi_decoder; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue