2021-09-10 12:57:55 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Card.h"
|
|
|
|
|
|
|
|
class FourPlayCard : public Card
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
FourPlayCard(UINT slot) :
|
2021-11-01 21:01:28 +00:00
|
|
|
Card(CT_FourPlay, slot)
|
2021-09-10 12:57:55 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
virtual ~FourPlayCard(void) {}
|
|
|
|
|
2021-11-13 18:13:01 +00:00
|
|
|
virtual void Init(void) {}
|
|
|
|
virtual void Reset(const bool powerCycle) {}
|
|
|
|
virtual void Update(const ULONG nExecutedCycles) {}
|
2021-09-10 12:57:55 +00:00
|
|
|
|
2021-11-11 21:45:55 +00:00
|
|
|
virtual void InitializeIO(LPBYTE pCxRomPeripheral);
|
2021-09-10 12:57:55 +00:00
|
|
|
|
|
|
|
static BYTE __stdcall IORead(WORD pc, WORD addr, BYTE bWrite, BYTE value, ULONG nExecutedCycles);
|
|
|
|
|
|
|
|
static std::string GetSnapshotCardName(void);
|
2021-11-25 20:23:21 +00:00
|
|
|
virtual void SaveSnapshot(YamlSaveHelper& yamlSaveHelper);
|
|
|
|
virtual bool LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT version);
|
2021-09-10 12:57:55 +00:00
|
|
|
|
|
|
|
static const UINT JOYSTICKSTATIONARY = 0x20;
|
|
|
|
|
|
|
|
private:
|
|
|
|
static BYTE MyGetAsyncKeyState(int vKey);
|
|
|
|
};
|