citra/src/input_core/key_map.h
2016-09-02 18:06:02 -05:00

24 lines
660 B
C++

// Copyright 2016 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include <array>
#include <tuple>
#include "core/hle/service/hid/hid.h"
class EmuWindow;
namespace KeyMap {
extern const std::array<Service::HID::PadState, Settings::NativeInput::NUM_INPUTS> mapping_targets;
extern const std::array<Service::HID::PadState, 4> analog_inputs;
///Handles the pressing of a key and modifies InputCore state
void PressKey(Service::HID::PadState target, float strength);
///Handles the releasing of a key and modifies InputCore state
void ReleaseKey(Service::HID::PadState target);
}