mirror of
https://github.com/libretro/Mesen.git
synced 2024-11-24 01:29:41 +00:00
48409ae82b
-Several other fixes (bugfixes, refactoring, etc.) -Added a few more features to debugger
31 lines
708 B
C++
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();
|
|
}; |