Skip to content

Commit be2bf53

Browse files
authored
Merge pull request #1 from Gleefre/master
Fix console-wait-for-keypress
2 parents 0ec045f + 96da29a commit be2bf53

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tcod.lisp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2483,10 +2483,12 @@ a light grey colour, or raise an error (if `error?' is non-nil)."
24832483

24842484
;;; changed from :bool to :int even though it is a bool in TCOD definition
24852485
;;; CFFI bug, see https://bugs.launchpad.net/cffi/+bug/1517578
2486-
(defcfun ("TCOD_console_wait_for_keypress" console-wait-for-keypress)
2486+
(defcfun ("TCOD_console_wait_for_keypress" %console-wait-for-keypress)
24872487
(:struct key-press)
24882488
(flush? :int))
24892489

2490+
(defun console-wait-for-keypress (flush?)
2491+
(%console-wait-for-keypress (if flush? 1 0)))
24902492

24912493
;;TCODLIB_API void TCOD_console_set_keyboard_repeat(int initial_delay,
24922494
;; int interval);

0 commit comments

Comments
 (0)