58 lines
1.0 KiB
C++
58 lines
1.0 KiB
C++
#ifndef _PURECONTROLLER_HPP_
|
|
#define _PURECONTROLLER_HPP_
|
|
#include <common/windows.hpp>
|
|
#include <common/fileio.hpp>
|
|
|
|
class PureController
|
|
{
|
|
public:
|
|
PureController(void);
|
|
~PureController();
|
|
WORD readController(FileIO &musFile);
|
|
BYTE controllerNumber(void)const;
|
|
BYTE controllerValue(void)const;
|
|
private:
|
|
void operator=(const PureController &somePureController);
|
|
BYTE mControllerNumber;
|
|
BYTE mControllerValue;
|
|
};
|
|
|
|
inline
|
|
PureController::PureController(void)
|
|
: mControllerNumber(0), mControllerValue(0)
|
|
{
|
|
}
|
|
|
|
inline
|
|
PureController::~PureController()
|
|
{
|
|
}
|
|
|
|
inline
|
|
BYTE PureController::controllerNumber(void)const
|
|
{
|
|
return mControllerNumber;
|
|
}
|
|
|
|
inline
|
|
BYTE PureController::controllerValue(void)const
|
|
{
|
|
return mControllerValue;
|
|
}
|
|
|
|
inline
|
|
WORD PureController::readController(FileIO &musFile)
|
|
{
|
|
if(!musFile.isOkay())return FALSE;
|
|
if(!musFile.read(mControllerNumber))return FALSE;
|
|
if(!musFile.read(mControllerValue))return FALSE;
|
|
return TRUE;
|
|
}
|
|
|
|
inline
|
|
void PureController::operator=(const PureController &/*somePureController*/)
|
|
{
|
|
return;
|
|
}
|
|
#endif
|