added kout to vault

This commit is contained in:
Simon
2025-06-01 20:06:58 +02:00
parent 83e18391b7
commit 893fc4bad9
6 changed files with 10 additions and 26 deletions

View File

@@ -9,9 +9,8 @@ extern TextStream kout;
namespace Epilogues {
void keyboard(Vault& g) {
DBG << "keyboard epi" << endl << flush;
(void)g;
kout << kout_key.ascii() << endl << flush ;
g.kout << kout_key.ascii() << endl << flush ;
}
void timer(Vault& g) { (void)g; }

View File

@@ -18,7 +18,8 @@ static BBuffer<Epilogue, 32> epilogue_queue[Core::MAX] = {};
constinit Ticketlock global_lock;
constinit bool epi_flag[Core::MAX] = {false};
Vault::Vault() {}
Vault::Vault() {
}
Guarded::~Guarded() { Guard::leave(); }

View File

@@ -12,8 +12,9 @@
//! \brief The epilogue vault contains the protected data for the epilogue level
struct Vault {
Vault();
TextStream kout = TextStream(0, 80, 0, 10, true);
// no copy
//TextStream kout;
Vault(const Vault&) = delete;
Vault& operator=(const Vault&) = delete;
};

View File

@@ -78,7 +78,6 @@ extern Ticketlock koutlock;
extern Vault keyboard_vault;
void handle_keyboard() {
DBG << "keyboard pro" << endl << flush;
//Key key = Key();
if (PS2Controller::fetch(kout_key)) {
Guard::relay(Epilogues::keyboard);