mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 08:45:46 -04:00
Move controller creation to System class, switch shared_ptr to unique_ptr
This commit is contained in:
@ -25,7 +25,7 @@ public:
|
||||
virtual void SetButtonState(s32 button_code, bool pressed);
|
||||
|
||||
/// Creates a new controller of the specified type.
|
||||
static std::shared_ptr<Controller> Create(std::string_view type_name);
|
||||
static std::unique_ptr<Controller> Create(std::string_view type_name);
|
||||
|
||||
/// Gets the integer code for a button in the specified controller type.
|
||||
static std::optional<s32> GetButtonCodeByName(std::string_view type_name, std::string_view button_name);
|
||||
|
Reference in New Issue
Block a user