mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-23 14:42:33 +01:00
Changelog: - S-SMP core code style updated - S-SMP loads reset vector from IPLROM ($fffe-ffff) - sfc/base => sfc/expansion - system/input => system/device - added expansion/eBoot (simulation of defparam's SNES-Boot device) - expansion port device can now be selected from Super Famicom menu option - improved GBA MROM/SRAM reading endrift's memory test is up to 1388/1552. Note: I added the expansion port devices to the same group as controller ports. I also had to move "None" to the top of the list. Before v096, I am going to have to add caching of port selections to the configuration file, check the proper default item in the system menu, and remove the items with no mappings from the input configuration window. Lots of work >_>
29 lines
427 B
C++
29 lines
427 B
C++
struct Device {
|
|
enum class ID : uint {
|
|
None,
|
|
|
|
//controller port devices
|
|
Gamepad,
|
|
Multitap,
|
|
Mouse,
|
|
SuperScope,
|
|
Justifier,
|
|
Justifiers,
|
|
USART,
|
|
|
|
//expansion port devices
|
|
Satellaview,
|
|
eBoot,
|
|
};
|
|
|
|
Device();
|
|
~Device();
|
|
|
|
auto connect(uint port, Device::ID id) -> void;
|
|
|
|
Controller* controllerPort1 = nullptr;
|
|
Controller* controllerPort2 = nullptr;
|
|
};
|
|
|
|
extern Device device;
|