mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-30 01:25:49 +00:00
08d4735ee8
-Separate each possible boards (wheel, joystick, skipad, billboard). -Defined a Driveboard type in Games.xml for each games. -Due to the refactoring, Driveboard Savestates have changed (a common base data + a specific board data are saved). -Backwards compatibility with previous save states is maintained. -Driveboard rom section is no longer required anymore. This disables Driveboard emulation in case the rom is not found. -Added Billboard emulation (vf3, vs2, fvipers2, von2). 7 segments and lamps Outputs are redirected to Supermodel outputs. -Changes project to C++ 17 standard.
118 lines
2.9 KiB
C++
118 lines
2.9 KiB
C++
/**
|
|
** Supermodel
|
|
** A Sega Model 3 Arcade Emulator.
|
|
** Copyright 2011-2021 Bart Trzynadlowski, Nik Henson, Ian Curtis,
|
|
** Harry Tuttle, and Spindizzi
|
|
**
|
|
** This file is part of Supermodel.
|
|
**
|
|
** Supermodel is free software: you can redistribute it and/or modify it under
|
|
** the terms of the GNU General Public License as published by the Free
|
|
** Software Foundation, either version 3 of the License, or (at your option)
|
|
** any later version.
|
|
**
|
|
** Supermodel is distributed in the hope that it will be useful, but WITHOUT
|
|
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
** FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
** more details.
|
|
**
|
|
** You should have received a copy of the GNU General Public License along
|
|
** with Supermodel. If not, see <http://www.gnu.org/licenses/>.
|
|
**/
|
|
|
|
/*
|
|
* BillBoard.h
|
|
*
|
|
* Header for the CBillBoard class (BillBoard emulation).
|
|
*/
|
|
|
|
#ifndef INCLUDED_BILLBOARD_H
|
|
#define INCLUDED_BILLBOARD_H
|
|
|
|
#include "Util/NewConfig.h"
|
|
|
|
/*
|
|
* CBillBoard
|
|
*/
|
|
class CBillBoard : public CDriveBoard
|
|
{
|
|
public:
|
|
/*
|
|
* GetType(void):
|
|
*
|
|
* Returns:
|
|
* Drive board type.
|
|
*/
|
|
|
|
Game::DriveBoardType GetType(void);
|
|
|
|
unsigned GetForceFeedbackStrength(void);
|
|
void SetForceFeedbackStrength(unsigned strength);
|
|
|
|
/*
|
|
* SaveState(SaveState):
|
|
*
|
|
* Saves the bill board state.
|
|
*
|
|
* Parameters:
|
|
* SaveState Block file to save state information to.
|
|
*/
|
|
void SaveState(CBlockFile *SaveState);
|
|
|
|
/*
|
|
* LoadState(SaveState):
|
|
*
|
|
* Restores the bill board state.
|
|
*
|
|
* Parameters:
|
|
* SaveState Block file to load save state information from.
|
|
*/
|
|
void LoadState(CBlockFile *SaveState);
|
|
|
|
void AttachInputs(CInputs* inputs, unsigned gameInputFlags);
|
|
|
|
/*
|
|
* CBillBoard(config):
|
|
* ~CBillBoard():
|
|
*
|
|
* Constructor and destructor. Memory is freed by destructor.
|
|
*
|
|
* Paramters:
|
|
* config Run-time configuration. The reference should be held because
|
|
* this changes at run-time.
|
|
*/
|
|
CBillBoard(const Util::Config::Node &config);
|
|
~CBillBoard(void);
|
|
|
|
/*
|
|
* Read8(addr):
|
|
* IORead8(portNum):
|
|
*
|
|
* Methods for reading from Z80's memory and IO space. Required by CBus.
|
|
*
|
|
* Parameters:
|
|
* addr Address in memory (0-0xFFFF).
|
|
* portNum Port address (0-255).
|
|
*
|
|
* Returns:
|
|
* A byte of data from the address or port.
|
|
*/
|
|
UINT8 IORead8(UINT32 portNum);
|
|
|
|
/*
|
|
* Write8(addr, data):
|
|
* IORead8(portNum, data):
|
|
*
|
|
* Methods for writing to Z80's memory and IO space. Required by CBus.
|
|
*
|
|
* Parameters:
|
|
* addr Address in memory (0-0xFFFF).
|
|
* portNum Port address (0-255).
|
|
* data Byte to write.
|
|
*/
|
|
void IOWrite8(UINT32 portNum, UINT8 data);
|
|
|
|
};
|
|
|
|
#endif // INCLUDED_BILLBOARD_H
|