Improve UI
This commit is contained in:
parent
5f0e8a9212
commit
b60f38046e
|
@ -105,9 +105,12 @@ namespace ScreenCenter {
|
||||||
static const auto handle_button = [](ButtonPulser& button_pulse, GenericButton button, int16_t &dst, const int16_t mlp) {
|
static const auto handle_button = [](ButtonPulser& button_pulse, GenericButton button, int16_t &dst, const int16_t mlp) {
|
||||||
switch(button_pulse.check(button)) {
|
switch(button_pulse.check(button)) {
|
||||||
case ButtonPulser::State::WentDown:
|
case ButtonPulser::State::WentDown:
|
||||||
case ButtonPulser::State::Pulse:
|
|
||||||
dst += (1*mlp);
|
dst += (1*mlp);
|
||||||
break;
|
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[2], GenericButton::Up, offset_y, -1);
|
||||||
handle_button(button_pulse[3], GenericButton::Down, offset_y, 1);
|
handle_button(button_pulse[3], GenericButton::Down, offset_y, 1);
|
||||||
|
|
||||||
auto cursor = FontWriter::update(CenterPoint);
|
auto cursor = FontWriter::update(CenterPoint.move(-offset_x, -offset_y));
|
||||||
FontWriter::bios_font_writer.write(cursor, ModeStr, TVModeStr);
|
FontWriter::bios_font_writer.write(cursor, ModeStr, GPU::Color24::White(), TVModeStr);
|
||||||
FontWriter::bios_font_writer.write(cursor, FormularStr);
|
FontWriter::bios_font_writer.write(cursor, FormularStr, GPU::Color24::White());
|
||||||
FontWriter::bios_font_writer.write(cursor, OffsetStr, offset_x, offset_y);
|
FontWriter::bios_font_writer.write(cursor, OffsetStr, GPU::Color24::White(), offset_x, offset_y);
|
||||||
|
|
||||||
PSYQ::set_offset(offset_x, offset_y);
|
PSYQ::set_offset(offset_x, offset_y);
|
||||||
}
|
}
|
||||||
|
@ -161,7 +164,6 @@ namespace ScreenCenter {
|
||||||
}
|
}
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
printf("BlubbBlubbBlubbBlubb\n");
|
|
||||||
setup();
|
setup();
|
||||||
|
|
||||||
while(true) {
|
while(true) {
|
||||||
|
|
Loading…
Reference in New Issue