2019-08-24 15:57:49 +02:00
|
|
|
// Copyright 2018 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
2020-02-03 15:09:06 +01:00
|
|
|
#pragma once
|
|
|
|
|
2019-08-24 15:57:49 +02:00
|
|
|
#include <memory>
|
2020-07-22 16:39:53 +02:00
|
|
|
#include <vector>
|
|
|
|
#include "common/param_package.h"
|
2019-08-24 15:57:49 +02:00
|
|
|
|
|
|
|
namespace InputCommon::CemuhookUDP {
|
|
|
|
|
2020-02-03 15:10:59 +01:00
|
|
|
class Client;
|
2020-07-22 16:39:53 +02:00
|
|
|
class UDPMotionFactory;
|
|
|
|
class UDPTouchFactory;
|
2019-08-24 15:57:49 +02:00
|
|
|
|
|
|
|
class State {
|
|
|
|
public:
|
|
|
|
State();
|
|
|
|
~State();
|
|
|
|
void ReloadUDPClient();
|
2020-08-15 21:26:29 +02:00
|
|
|
std::vector<Common::ParamPackage> GetInputDevices() const;
|
2019-08-24 15:57:49 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
std::unique_ptr<Client> client;
|
2020-07-22 16:39:53 +02:00
|
|
|
std::shared_ptr<UDPMotionFactory> motion_factory;
|
|
|
|
std::shared_ptr<UDPTouchFactory> touch_factory;
|
2019-08-24 15:57:49 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
std::unique_ptr<State> Init();
|
|
|
|
|
|
|
|
} // namespace InputCommon::CemuhookUDP
|