@@ -19,7 +19,6 @@ namespace BrokenBytes::DualSense4Windows::UI {
1919 constexpr uint32_t WINDOW_HEIGHT = 600 ;
2020
2121 class App {
22-
2322 public:
2423 // / <summary>
2524 // / Called when the app starts
@@ -28,37 +27,49 @@ namespace BrokenBytes::DualSense4Windows::UI {
2827 // / <summary>
2928 // / Called when the app receives a device change event
3029 // / </summary>
31- sigslot::signal<> DeviceChange ;
30+ sigslot::signal<> DevicesChanged ;
3231
32+ // / <summary>
33+ // / Called when the app triggers a color picker change
34+ // / </summary>
3335 sigslot::signal<uint8_t , Color> ColorChanged;
3436
3537 // / <summary>
3638 // / Creates an app instance
3739 // / </summary>
38- // / <param name="instance">The Win32 App instance</param>
39- App (HINSTANCE instance);
40+ App ();
4041 ~App ();
4142
4243 // / <summary>
4344 // / The currently window that is active
4445 // / </summary>
4546 // / <returns>The window handle</returns>
4647 std::shared_ptr<UI::Window> Window () const ;
47-
48+
49+ // / <summary>
50+ // / Runs the app loop
51+ // / </summary>
4852 void Run ();
53+
54+ // / <summary>
55+ // / Called on Update
56+ // / </summary>
4957 void OnUpdate ();
58+
59+ // / <summary>
60+ // / Called on close of the App
61+ // / </summary>
5062 void OnClose ();
5163
5264 // Slots
5365 // / <summary>
5466 // / Called when the number of DualSense devices connected changes
5567 // / </summary>
5668 // / <param name="devices"></param>
57- void DualSenseDevicesChanged (std::map <char *, DualSense *> devices);
69+ void DualSenseDevicesChanged (std::vector <char *> devices);
5870
5971
6072 private:
61- HINSTANCE _win32Instance;
6273 std::shared_ptr<UI::Window> _mainWindow;
6374 std::shared_ptr<UI::Window> _window;
6475
0 commit comments