Class NESPeripherals
Defined in File NESPeripherals.h
Nested Relationships
Nested Types
Inheritance Relationships
Base Type
public Component
(Class Component)
Class Documentation
-
class NESPeripherals : public Component
NES Peripherals emulation. For now, there is only emulation of two standard controllers implemented.
Connectors: data cpuBus to interface with the main NES bus.
Public Functions
-
NESPeripherals()
-
~NESPeripherals() override = default
-
virtual void init() override
Initialize a component to a default power-on state (hard reset).
Note
For Component developer: Implement a correct power-on state here.
-
virtual std::vector<EmulatorWindow> getGUIs() override
Get GUI windows: metadata and rendering functions.
Note
For Component developer: If the component have a debugger or other GUI, return an arbitrary count of windows, they will be rendered on a load of a system which contains the component.
- Returns
A vector of windows to be rendered.
-
virtual std::vector<ImInputBinder::action_t> getInputs() override
Get input key/gamepad mapping requests with corresponding actions.
Note
For Component developer: If the component wants to interact with keyboard, gamepad or similar, return a vector of required keys and actions when they are pressed or released. Default keybindings can be changed by the user and saved to their config.
-
NESPeripherals()