libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
SDLAddRemoveDeviceEventHandler.h
Go to the documentation of this file.
1#pragma once
2
4#include <memory>
5
6namespace Ship {
7class ConsoleVariable;
8class ControlDeck;
9class Window;
10
20 public:
21 SDLAddRemoveDeviceEventHandler(std::shared_ptr<ConsoleVariable> consoleVariable, std::shared_ptr<Window> window,
22 std::shared_ptr<ControlDeck> controlDeck, const std::string& visibilityCvar,
23 const std::string& name);
25
26 protected:
28 void DrawElement() override;
29
31 void UpdateElement() override;
32
33 private:
34 std::shared_ptr<ControlDeck> mControlDeck;
35};
36} // namespace Ship
A floating ImGui window managed by the Ship Gui layer.
Definition GuiWindow.h:39
Hidden GuiWindow that listens for SDL controller add/remove events.
Definition SDLAddRemoveDeviceEventHandler.h:19
void UpdateElement() override
Polls SDL events and dispatches device connect/disconnect callbacks.
SDLAddRemoveDeviceEventHandler(std::shared_ptr< ConsoleVariable > consoleVariable, std::shared_ptr< Window > window, std::shared_ptr< ControlDeck > controlDeck, const std::string &visibilityCvar, const std::string &name)
void DrawElement() override
No-op – this handler does not draw any visible UI.
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14