Mesen/Core/GameClientConnection.h
Souryo 48409ae82b -Rewrote entire GUI in .NET
-Several other fixes (bugfixes, refactoring, etc.)
-Added a few more features to debugger
2015-07-01 23:17:14 -04:00

31 lines
708 B
C++

#pragma once
#include "stdafx.h"
#include "GameConnection.h"
#include "IControlDevice.h"
class ClientConnectionData;
class VirtualController;
class GameClientConnection : public GameConnection
{
private:
vector<unique_ptr<VirtualController>> _virtualControllers;
IControlDevice* _controlDevice;
uint8_t _lastInputSent = 0x00;
bool _gameLoaded = false;
uint8_t _controllerPort = 255;
private:
void SendHandshake();
void InitializeVirtualControllers();
void DisposeVirtualControllers();
protected:
void ProcessMessage(NetMessage* message);
public:
GameClientConnection(shared_ptr<Socket> socket, shared_ptr<ClientConnectionData> connectionData);
~GameClientConnection();
void SendInput();
};