Read analoge stick positions

This commit is contained in:
2024-01-04 21:36:40 -06:00
parent 2d66e4fe96
commit b2e25c6dc3
4 changed files with 59 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
#include "../../../include/shared.hpp"
#include "../../include/font_writer.hpp"
#include "include/controller_state.hpp"
#include <PSX/Periphery/periphery.hpp>
#include <stdio.h>
@@ -19,12 +20,13 @@ namespace ControllerTest {
return true;
}
controller_state.update(Periphery::get_primary_controller_as<JabyEngine::Periphery::GenericController>());
controller_state.update(Periphery::get_primary_controller_as<JabyEngine::Periphery::AnalogeController>(), FontWriter::new_font_writer);
return false;
}
static void render() {
controller_state.render();
FontWriter::new_font_writer.render();
Shared::back_menu.render();
}