implement input character queue and add PushCharacters macro utility

This commit is contained in:
Andrzej Rybczak
2012-08-25 06:50:27 +02:00
parent 55ae5b1816
commit f6cae753e2
9 changed files with 94 additions and 45 deletions

View File

@@ -75,10 +75,6 @@ class BasicScreen
///
virtual void RefreshWindow() = 0;
/// see Screen::ReadKey()
///
virtual void ReadKey(int &key) = 0;
/// @see Screen::Scroll()
///
virtual void Scroll(Where where) = 0;
@@ -204,10 +200,7 @@ template <typename WindowType> class Screen : public BasicScreen
///
virtual void RefreshWindow();
/// Reads a key from the screen
///
virtual void ReadKey(int &key);
/// Scrolls the screen by given amount of lines and
/// if fancy scrolling feature is disabled, enters the
/// loop that holds main loop until user releases the key
@@ -250,11 +243,6 @@ template <typename WindowType> void Screen<WindowType>::RefreshWindow()
w->Display();
}
template <typename WindowType> void Screen<WindowType>::ReadKey(int &key)
{
w->ReadKey(key);
}
template <typename WindowType> void Screen<WindowType>::Scroll(Where where)
{
w->Scroll(where);