1

remove old input.h

This commit is contained in:
2022-07-22 02:34:00 +02:00
parent 7e86f961fe
commit 4327789db6
2 changed files with 0 additions and 41 deletions

View File

@ -1,24 +0,0 @@
/*****************************************************************************
* *
* I N P U T *
* *
*---------------------------------------------------------------------------*
* Beschreibung: Hilfsfunktion zum Warten bis auf der Tastatur die Ein- *
* -gabetaste gedrückt wird. *
* *
* Autor: Michael Schoettner, HHU, 2.05.2022 *
*****************************************************************************/
#include "devices/Keyboard.h"
#include "kernel/Globals.h"
void waitForReturn() {
// Warten bis <ENTER> gedrueckt wird
kb.lastkey = '\0'; // lastKey loeschen
while (kb.lastkey != 10) {};
}
char getch() {
kb.lastkey = '\0'; // lastKey loeschen
while (kb.lastkey == '\0') {};
return kb.lastkey;
}

View File

@ -1,17 +0,0 @@
/*****************************************************************************
* *
* I N P U T *
* *
*---------------------------------------------------------------------------*
* Beschreibung: Hilfsfunktion zum Warten bis auf der Tastatur die Ein- *
* -gabetaste gedrückt wird. *
* *
* Autor: Michael Schoettner, HHU, 2.05.2022 *
*****************************************************************************/
#ifndef __Input_include__
#define __Input_include__
char getch();
void waitForReturn();
#endif