OSD: Add controller input display overlay

This commit is contained in:
Connor McLaughlin
2021-04-04 03:51:08 +10:00
parent a9a571cd6a
commit 251043f11a
25 changed files with 293 additions and 12 deletions

View File

@ -0,0 +1,24 @@
#pragma once
#include "core/controller.h"
#include <array>
namespace FrontendCommon {
class InputOverlayUI
{
public:
InputOverlayUI();
~InputOverlayUI();
void Draw();
private:
void UpdateNames();
std::array<Controller::AxisList, NUM_CONTROLLER_AND_CARD_PORTS> m_axis_names;
std::array<Controller::ButtonList, NUM_CONTROLLER_AND_CARD_PORTS> m_button_names;
std::array<ControllerType, NUM_CONTROLLER_AND_CARD_PORTS> m_types{};
u32 m_active_ports = 0;
};
} // namespace FrontendCommon