Skip to content

Commit

Permalink
fixing build
Browse files Browse the repository at this point in the history
  • Loading branch information
mborik committed Jul 3, 2024
1 parent b0fd63b commit 266e230
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/Joy4004482.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
//---------------------------------------------------------------------------
#include <stdexcept>
#include "Joy4004482.h"
//---------------------------------------------------------------------------
Joy4004482::Joy4004482(IifGPIO *pio, TSettings::SetJoystick* settings)
{
if (!pio)
throw std::invalid_argument("Required GPIO not initialized!");
throw std::runtime_error("Required GPIO not initialized!");

this->pio = pio;
this->settings = settings;
Expand All @@ -46,7 +47,7 @@ Joy4004482::~Joy4004482()
}
}
//---------------------------------------------------------------------------
bool Joy4004482::Connect()
void Joy4004482::Connect()
{
if (joyCnt > 0) {
pio->OnCpuReadA.disconnect(this);
Expand Down
2 changes: 1 addition & 1 deletion src/Joy4004482.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Joy4004482 : public sigslot::has_slots<>
Joy4004482(IifGPIO *pio, TSettings::SetJoystick* settings);
virtual ~Joy4004482();

bool Connect();
void Connect();
int GetControllers(SDL_GameController ***controllers, bool refresh = false);
void ScanJoy(BYTE *keyBuffer);

Expand Down

0 comments on commit 266e230

Please sign in to comment.