mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-23 00:30:17 +00:00
685b93f387
Support these new cards in slots 3, 4 or 5; based on code from Lukazi. - extend Configuration's Input prop sheet page. - add save/load snapshot for both cards. - add command line switch for alt controller type (for SNES MAX card). Change to using Registry's 'Configuration\Slot 3' for slot 3 cards (Uthernet, 4Play & SNES MAX). Update help doc.
33 lines
718 B
C++
33 lines
718 B
C++
#pragma once
|
|
|
|
#include "Card.h"
|
|
|
|
class FourPlayCard : public Card
|
|
{
|
|
public:
|
|
FourPlayCard(UINT slot) :
|
|
Card(CT_FourPlay),
|
|
m_slot(slot)
|
|
{
|
|
}
|
|
virtual ~FourPlayCard(void) {}
|
|
|
|
virtual void Init(void) {};
|
|
virtual void Reset(const bool powerCycle) {};
|
|
|
|
void InitializeIO(LPBYTE pCxRomPeripheral, UINT slot);
|
|
|
|
static BYTE __stdcall IORead(WORD pc, WORD addr, BYTE bWrite, BYTE value, ULONG nExecutedCycles);
|
|
|
|
static std::string GetSnapshotCardName(void);
|
|
void SaveSnapshot(class YamlSaveHelper& yamlSaveHelper);
|
|
bool LoadSnapshot(class YamlLoadHelper& yamlLoadHelper, UINT slot, UINT version);
|
|
|
|
static const UINT JOYSTICKSTATIONARY = 0x20;
|
|
|
|
private:
|
|
static BYTE MyGetAsyncKeyState(int vKey);
|
|
|
|
UINT m_slot;
|
|
};
|