added kout to vault
This commit is contained in:
@@ -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; }
|
||||
|
||||
@@ -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(); }
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user