29 lines
No EOL
627 B
C++
29 lines
No EOL
627 B
C++
#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:
|
|
virtual uint8_t RefreshState() override;
|
|
uint8_t ProcessNetPlayState(uint32_t netplayState) override;
|
|
void StreamState(bool saving) override;
|
|
|
|
public:
|
|
using BaseControlDevice::BaseControlDevice;
|
|
|
|
virtual uint8_t GetPortOutput() override;
|
|
virtual uint32_t GetNetPlayState() override;
|
|
|
|
void WriteRam(uint8_t value);
|
|
}; |