2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-16 15:37:01 +00:00

Lots of Windows fixes; add D3D12; more boo decoupling

This commit is contained in:
2022-02-22 00:53:57 -05:00
parent 54330e43b6
commit c33674b9ab
55 changed files with 380 additions and 261 deletions

View File

@@ -2,7 +2,9 @@
#include "Runtime/CArchitectureMessage.hpp"
#include "Runtime/CArchitectureQueue.hpp"
#include "imgui/magic_enum.hpp"
#include <magic_enum.hpp>
namespace metaforce {
void CInputGenerator::Update(float dt, CArchitectureQueue& queue) {
@@ -49,8 +51,7 @@ void CInputGenerator::controllerAdded(uint32_t which) noexcept {
}
void CInputGenerator::controllerRemoved(uint32_t which) noexcept {
auto* it =
std::find_if(m_state.begin(), m_state.end(), [&which](const auto& s) { return s.m_which == which; });
auto it = std::find_if(m_state.begin(), m_state.end(), [&which](const auto& s) { return s.m_which == which; });
if (it == m_state.end()) {
return;
}