Controller: Add a set-button interface in base class

This commit is contained in:
Connor McLaughlin
2019-12-09 01:06:58 +10:00
parent da14b10e72
commit 89e9373037
4 changed files with 16 additions and 1 deletions

View File

@ -20,6 +20,9 @@ public:
// Returns the value of ACK, as well as filling out_data.
virtual bool Transfer(const u8 data_in, u8* data_out);
/// Changes the specified button state.
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);