Files
dolphin/Source/Core/InputCommon/GCAdapter.h
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
711 B
C++
Raw Normal View History

// Copyright 2014 Dolphin Emulator Project
2015-05-18 01:08:10 +02:00
// Licensed under GPLv2+
2014-12-10 20:45:45 +11:00
// Refer to the license.txt file included.
#pragma once
#include <functional>
2016-01-12 22:34:13 -05:00
#include "Common/CommonTypes.h"
struct GCPadStatus;
2014-12-10 20:45:45 +11:00
namespace GCAdapter
2014-12-10 20:45:45 +11:00
{
2016-01-06 00:57:08 -06:00
enum ControllerTypes
{
CONTROLLER_NONE = 0,
CONTROLLER_WIRED = 1,
CONTROLLER_WIRELESS = 2
};
2014-12-10 20:45:45 +11:00
void Init();
void ResetRumble();
2014-12-10 20:45:45 +11:00
void Shutdown();
void SetAdapterCallback(std::function<void(void)> func);
void StartScanThread();
void StopScanThread();
2016-08-01 21:16:00 -04:00
GCPadStatus Input(int chan);
void Output(int chan, u8 rumble_command);
bool IsDetected(const char** error_message);
bool DeviceConnected(int chan);
2019-03-29 06:15:58 -05:00
void ResetDeviceType(int chan);
bool UseAdapter();
2014-12-10 20:45:45 +11:00
} // end of namespace GCAdapter