Skip to content

Commit

Permalink
fixed more compile issues, fixed all declarations to be in correct na…
Browse files Browse the repository at this point in the history
…mespace
  • Loading branch information
ion098 committed May 29, 2024
1 parent 6321e53 commit fd24a3f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions include/gamepad/controller.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,15 @@ class Button {
EventHandler<> onReleaseEvent;
};

namespace _impl {
static struct ControllerInit {
ControllerInit();
~ControllerInit();
} _controllerInit;
} // namespace _impl

class Controller {
friend struct ControllerInit;
friend struct _impl::ControllerInit;
public:
/**
* Updates the state of the gamepad (all joysticks and buttons), and also runs
Expand Down Expand Up @@ -78,11 +85,4 @@ class Controller {
extern Controller& master;
extern Controller& partner;

namespace _impl {
static struct ControllerInit {
ControllerInit();
~ControllerInit();
} _controllerInit;
} // namespace _impl

} // namespace Gamepad

0 comments on commit fd24a3f

Please sign in to comment.