Mesen-X/Core/OekaKidsTablet.h

29 lines
627 B
C
Raw Normal View History

2016-07-30 17:27:14 -04:00
#pragma once
#include "stdafx.h"
#include "BaseControlDevice.h"
class OekaKidsTablet : public BaseControlDevice
{
private:
bool _strobe = false;
bool _shift = false;
uint32_t _stateBuffer = 0;
bool _click = false;
bool _touch = false;
int32_t _xPosition = 0;
int32_t _yPosition = 0;
protected:
2016-12-17 23:14:47 -05:00
virtual uint8_t RefreshState() override;
uint8_t ProcessNetPlayState(uint32_t netplayState) override;
void StreamState(bool saving) override;
2016-07-30 17:27:14 -04:00
public:
using BaseControlDevice::BaseControlDevice;
2016-12-17 23:14:47 -05:00
virtual uint8_t GetPortOutput() override;
virtual uint32_t GetNetPlayState() override;
2016-07-30 17:27:14 -04:00
void WriteRam(uint8_t value);
};