AgonConsole8 / agon-vdp

Official Firmware for the Agon Console8: ESP32 VDP
MIT License
38 stars 17 forks source link

Adding support to select all layouts handled by vdp-gl. #99

Closed GaiusJocundus closed 9 months ago

GaiusJocundus commented 10 months ago

Howdy y'all. My apologies for all the confusion, I was trying to work from fabgl and I confused myself when switching to vdp-gl. I've got dvorak support added there now: https://github.com/gaiusjocundus/vdp-gl/tree/dvorak

I'd like to open a new pr here to enable all the new layouts in agon-vdp. Here is a diff of the proposed changes:

diff --git a/video/agon_ps2.h b/video/agon_ps2.h
index 5a92623..a68df12 100644
--- a/video/agon_ps2.h
+++ b/video/agon_ps2.h
@@ -55,6 +55,15 @@ void setKeyboardLayout(uint8_t region) {
                case 6: kb->setLayout(&fabgl::BelgianLayout); break;
                case 7: kb->setLayout(&fabgl::NorwegianLayout); break;
                case 8: kb->setLayout(&fabgl::JapaneseLayout);break;
+    case 9: kb->setLayout(&fabgl::USInternationalLayout);break;
+    case 10: kb->setLayout(&fabgl::USInternationalAltLayout);break;
+    case 11: kb->setLayout(&fabgl::SwissGLayout);break;
+    case 12: kb->setLayout(&fabgl::SwissFLayout);break;
+    case 13: kb->setLayout(&fabgl::DanishLayout);break;
+    case 14: kb->setLayout(&fabgl::SwedishLayout);break;
+    case 15: kb->setLayout(&fabgl::PortugueseLayout);break;
+    case 16: kb->setLayout(&fabgl::BrazilianPortugueseLayout);break;
+    case 17: kb->setLayout(&fabgl::DvorakLayout);break;
                default:
                        kb->setLayout(&fabgl::UKLayout);
                        break;
GaiusJocundus commented 10 months ago

Relevant PR: https://github.com/AgonConsole8/agon-vdp/pulls

stevesims commented 9 months ago

this support was released in 2.2.0 🎉