10#include "libultraship/libultra/controller.h"
12#include <unordered_map>
13#include "ship/controller/controldevice/controller/Controller.h"
36 Controller(uint8_t portIndex, std::vector<CONTROLLERBUTTONS_T> bitmasks,
37 std::shared_ptr<Ship::ConsoleVariable> consoleVariable =
nullptr,
38 std::shared_ptr<Ship::ControlDeck> controlDeck =
nullptr,
39 std::shared_ptr<Ship::Window> window =
nullptr);
55 void ReadToOSContPad(OSContPad* pad);
57 std::deque<OSContPad> mPadBuffer;
Ship's N64-compatible Controller implementation.
Definition Controller.h:29
Controller(uint8_t portIndex, std::vector< CONTROLLERBUTTONS_T > bitmasks, std::shared_ptr< Ship::ConsoleVariable > consoleVariable=nullptr, std::shared_ptr< Ship::ControlDeck > controlDeck=nullptr, std::shared_ptr< Ship::Window > window=nullptr)
Constructs a Controller for the given port with the specified button bitmasks.
void ReadToPad(void *pad) override
Reads the current Ship::Controller state and writes it to the game's pad structure.
Represents a single logical controller connected to a ControlPort.
Definition Controller.h:38
Definition ControlDeck.h:13