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