2016-02-06 04:14:27 +00:00
|
|
|
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
|
|
#include "BaseControlDevice.h"
|
|
|
|
|
|
|
|
class Zapper : public BaseControlDevice
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
bool _pulled;
|
|
|
|
int32_t _xPosition;
|
|
|
|
int32_t _yPosition;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
uint8_t RefreshState();
|
|
|
|
uint8_t ProcessNetPlayState(uint32_t netplayState);
|
|
|
|
void StreamState(bool saving);
|
|
|
|
|
|
|
|
public:
|
|
|
|
using BaseControlDevice::BaseControlDevice;
|
|
|
|
|
|
|
|
uint8_t GetPortOutput();
|
|
|
|
|
|
|
|
uint32_t GetZapperState();
|
2016-02-06 14:25:37 +00:00
|
|
|
void SetPosition(double x, double y);
|
2016-02-06 04:14:27 +00:00
|
|
|
void SetTriggerState(bool pulled);
|
|
|
|
};
|