renamings
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
#include "user/KeyEventListener.h"
|
#include "user/event/KeyEventListener.h"
|
||||||
#include "kernel/Globals.h"
|
#include "kernel/Globals.h"
|
||||||
|
|
||||||
void KeyEventListener::trigger(char c) {
|
void KeyEventListener::trigger(char c) {
|
||||||
@ -7,5 +7,5 @@ void KeyEventListener::trigger(char c) {
|
|||||||
|
|
||||||
char KeyEventListener::waitForKeyEvent() const {
|
char KeyEventListener::waitForKeyEvent() const {
|
||||||
scheduler.block();
|
scheduler.block();
|
||||||
return this->lastChar;
|
return this->lastChar; // This is only executed after thread is woken up by manager
|
||||||
}
|
}
|
||||||
@ -1,4 +1,4 @@
|
|||||||
#include "user/KeyEventManager.h"
|
#include "user/event/KeyEventManager.h"
|
||||||
#include "kernel/Globals.h"
|
#include "kernel/Globals.h"
|
||||||
|
|
||||||
void KeyEventManager::subscribe(KeyEventListener& listener) {
|
void KeyEventManager::subscribe(KeyEventListener& listener) {
|
||||||
@ -1,7 +1,7 @@
|
|||||||
#ifndef __KeyEventManager_Include_H_
|
#ifndef __KeyEventManager_Include_H_
|
||||||
#define __KeyEventManager_Include_H_
|
#define __KeyEventManager_Include_H_
|
||||||
|
|
||||||
#include "user/KeyEventListener.h"
|
#include "user/event/KeyEventListener.h"
|
||||||
|
|
||||||
// NOTE: Could do this more generally but we only have key events
|
// NOTE: Could do this more generally but we only have key events
|
||||||
|
|
||||||
Reference in New Issue
Block a user