remove params from keyboard plugin
This commit is contained in:
@ -325,7 +325,7 @@ void Keyboard::set_led(char led, bool on) {
|
|||||||
|
|
||||||
// Registriert die Tastatur ISR im IntDispatcher
|
// Registriert die Tastatur ISR im IntDispatcher
|
||||||
// und erlaubt den keyboard interrupt im PIC
|
// und erlaubt den keyboard interrupt im PIC
|
||||||
void Keyboard::plugin(IntDispatcher& intdis, PIC& pic) {
|
void Keyboard::plugin() {
|
||||||
intdis.assign(IntDispatcher::keyboard, *this);
|
intdis.assign(IntDispatcher::keyboard, *this);
|
||||||
pic.allow(PIC::keyboard);
|
pic.allow(PIC::keyboard);
|
||||||
}
|
}
|
||||||
@ -348,14 +348,17 @@ void Keyboard::trigger() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Where to place this?
|
// TODO: Where to place this?
|
||||||
|
// To use keyboard interrupts from different applications more work is needed:
|
||||||
|
// - Ereignisverwaltung, wo man Threads registrieren kann
|
||||||
|
// - Blockierte Threads verwalten und aufwecken bei ereignissen
|
||||||
// Waits for keys to control the scrollback buffer display
|
// Waits for keys to control the scrollback buffer display
|
||||||
void scroll_mode(Key key) {
|
void scroll_mode(Key key) {
|
||||||
switch ((char)key) {
|
switch ((char)key) {
|
||||||
case 'k':
|
case 'k':
|
||||||
kout.scroll_page_backward();
|
// kout.scroll_page_backward();
|
||||||
break;
|
break;
|
||||||
case 'j':
|
case 'j':
|
||||||
kout.scroll_page_forward();
|
// kout.scroll_page_forward();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -90,8 +90,7 @@ public:
|
|||||||
void set_led(char led, bool on);
|
void set_led(char led, bool on);
|
||||||
|
|
||||||
// Aktivierung der Unterbrechungen fuer die Tastatur
|
// Aktivierung der Unterbrechungen fuer die Tastatur
|
||||||
// TODO: NOTE: I added this (parameters), but is it supposed to be this way?
|
void plugin();
|
||||||
void plugin(IntDispatcher& intdis, PIC& pic);
|
|
||||||
|
|
||||||
// Unterbrechnungsroutine der Tastatur.
|
// Unterbrechnungsroutine der Tastatur.
|
||||||
void trigger() override;
|
void trigger() override;
|
||||||
|
|||||||
Reference in New Issue
Block a user