Debian Codegraph @

Source/Core/InputCommon/GCAdapter.h

raw symbols SCIP
1 // Copyright 2014 Dolphin Emulator Project
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #pragma once
5
6 #include <functional>
7
8 #include "Common/CommonTypes.h"
9
10 struct GCPadStatus;
11
12 namespace GCAdapter
13 {
14 void Init();
15 void ResetRumble();
16 void Shutdown();
17 void SetAdapterCallback(std::function<void(void)> func);
18
19 // Buttons have PAD_GET_ORIGIN set on new connection
20 // Netplay and CSIDevice_GCAdapter make use of this.
21 GCPadStatus Input(int chan);
22
23 void Output(int chan, u8 rumble_command);
24 bool IsDetected(const char** error_message);
25 bool DeviceConnected(int chan);
26 void ResetDeviceType(int chan);
27
28 // Callable from any thread. Returns 0 when the adapter is not detected.
29 double GetCurrentPollRate();
30
31 } // namespace GCAdapter