2018-01-18 16:43:17 +01: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
|
|
|
|
|
2018-01-18 16:43:17 +01:00
|
|
|
#include <memory>
|
|
|
|
#include <unordered_map>
|
|
|
|
#include "input_common/main.h"
|
|
|
|
#include "input_common/udp/client.h"
|
|
|
|
|
|
|
|
namespace InputCommon::CemuhookUDP {
|
|
|
|
|
|
|
|
class UDPTouchDevice;
|
|
|
|
class UDPMotionDevice;
|
|
|
|
|
|
|
|
class State {
|
|
|
|
public:
|
|
|
|
State();
|
|
|
|
~State();
|
2018-08-08 05:50:03 +02:00
|
|
|
void ReloadUDPClient();
|
2018-01-18 16:43:17 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
std::unique_ptr<Client> client;
|
|
|
|
};
|
|
|
|
|
|
|
|
std::unique_ptr<State> Init();
|
|
|
|
|
|
|
|
} // namespace InputCommon::CemuhookUDP
|