mirror of
https://github.com/citra-emu/citra.git
synced 2025-04-08 16:30:07 +00:00
30 lines
876 B
C++
30 lines
876 B
C++
// Copyright 2016 Citra Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
#include <tuple>
|
|
|
|
#include "core/hle/service/hid/hid.h"
|
|
#include "core/settings.h"
|
|
#include "input_core/devices/IDevice.h"
|
|
|
|
class Keyboard;
|
|
|
|
namespace InputCore {
|
|
void Init();
|
|
void Shutdown();
|
|
Service::HID::PadState GetPadState();
|
|
void SetPadState(Service::HID::PadState& state);
|
|
std::tuple<s16, s16> GetCirclePad();
|
|
void SetCirclePad(std::tuple<s16, s16>& circle );
|
|
std::shared_ptr<Keyboard> GetKeyboard();
|
|
/// Read settings to initialize devices
|
|
void ParseSettings();
|
|
|
|
/// Helper method to check if device was already initialized
|
|
bool CheckIfMappingExists(const std::vector<Settings::InputDeviceMapping>& uniqueMapping, Settings::InputDeviceMapping mappingToCheck);
|
|
}
|