Introduce JabyEngine configuration file

This commit is contained in:
2024-01-02 20:29:36 -06:00
parent f1d4197762
commit 837073fcda
4 changed files with 28 additions and 5 deletions

View File

@@ -1,9 +1,13 @@
#pragma once
#include "../jabyegine_config.hpp"
#include "raw_controller.hpp"
namespace JabyEngine {
namespace Periphery {
extern RawController controller[1][1];
static constexpr uint32_t PortCount = Configuration::Periphery::UsePortB ? 2 : 1;
static constexpr uint32_t DeviceCount = Configuration::Periphery::UseMultiTap ? 4 : 1;
extern RawController controller[PortCount][DeviceCount];
void query_controller();
}