diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-04-02 23:29:43 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-04-02 23:29:43 +0200 |
commit | 1097d773f78f37c96841f98558d6f3e75572f4b7 (patch) | |
tree | fa4e9215c05c70b51efc5bc7df75dcfa468bf7ed /crawl-ref/source/libgui.cc | |
parent | 63f08da3a9808af44095ac198fb513b3643c346d (diff) | |
download | crawl-ref-1097d773f78f37c96841f98558d6f3e75572f4b7.tar.gz crawl-ref-1097d773f78f37c96841f98558d6f3e75572f4b7.zip |
Don't rely on undocumented behaviour of ncursesw.
The API doesn't provide a way to giveback a function key, so let's do our
own giveback buffer.
Diffstat (limited to 'crawl-ref/source/libgui.cc')
-rw-r--r-- | crawl-ref/source/libgui.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/libgui.cc b/crawl-ref/source/libgui.cc index 71a449543b..ff418ba8ff 100644 --- a/crawl-ref/source/libgui.cc +++ b/crawl-ref/source/libgui.cc @@ -186,7 +186,7 @@ void update_screen() tiles.set_need_redraw(); } -int kbhit() +bool kbhit() { // Look for the presence of any keyboard events in the queue. int count = wm->get_event_count(WM_KEYDOWN); |