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