Improve UI

This commit is contained in:
jaby 2024-01-15 20:51:52 -05:00
parent a91ba842e0
commit ffb782a69c
1 changed files with 8 additions and 6 deletions

View File

@ -105,9 +105,12 @@ namespace ScreenCenter {
static const auto handle_button = [](ButtonPulser& button_pulse, GenericButton button, int16_t &dst, const int16_t mlp) {
switch(button_pulse.check(button)) {
case ButtonPulser::State::WentDown:
case ButtonPulser::State::Pulse:
dst += (1*mlp);
break;
case ButtonPulser::State::Pulse:
dst += (2*mlp);
break;
}
};
@ -125,10 +128,10 @@ namespace ScreenCenter {
handle_button(button_pulse[2], GenericButton::Up, offset_y, -1);
handle_button(button_pulse[3], GenericButton::Down, offset_y, 1);
auto cursor = FontWriter::update(CenterPoint);
FontWriter::bios_font_writer.write(cursor, ModeStr, TVModeStr);
FontWriter::bios_font_writer.write(cursor, FormularStr);
FontWriter::bios_font_writer.write(cursor, OffsetStr, offset_x, offset_y);
auto cursor = FontWriter::update(CenterPoint.move(-offset_x, -offset_y));
FontWriter::bios_font_writer.write(cursor, ModeStr, GPU::Color24::White(), TVModeStr);
FontWriter::bios_font_writer.write(cursor, FormularStr, GPU::Color24::White());
FontWriter::bios_font_writer.write(cursor, OffsetStr, GPU::Color24::White(), offset_x, offset_y);
PSYQ::set_offset(offset_x, offset_y);
}
@ -161,7 +164,6 @@ namespace ScreenCenter {
}
void main() {
printf("BlubbBlubbBlubbBlubb\n");
setup();
while(true) {