mirror of
https://github.com/citra-emu/citra.git
synced 2025-04-20 16:10:49 +00:00
30 lines
890 B
C++
30 lines
890 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 {
|
|
extern Service::HID::PadState pad_state;
|
|
extern std::tuple<s16, s16> circle_pad;
|
|
|
|
extern std::shared_ptr<Keyboard> main_keyboard; ///< Instance of main keyboard device. Always initialized regardless of settings.
|
|
|
|
void Init();
|
|
void Shutdown();
|
|
|
|
///Read settings to initialize devices
|
|
std::vector<std::shared_ptr<IDevice>> ParseSettings();
|
|
|
|
///Helper method to check if device was already initialized
|
|
bool CheckIfMappingExists(std::vector<Settings::InputDeviceMapping> uniqueMapping, Settings::InputDeviceMapping mappingToCheck);
|
|
}
|