From d9d23767d40fbb318b5c8fe78b831bff8c07fdc8 Mon Sep 17 00:00:00 2001 From: Ben Wiley Sittler <bsittler@gmail.com> Date: Thu, 6 Nov 2008 07:14:12 +0000 Subject: [PATCH] default to $timeout = 0 in Display::getEvent() --- caca-php/caca.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caca-php/caca.php b/caca-php/caca.php index 727bf42..415095c 100644 --- a/caca-php/caca.php +++ b/caca-php/caca.php @@ -444,7 +444,7 @@ class Display { return caca_set_mouse($this->dp, $state); } - function getEvent($t, $timeout) { + function getEvent($t, $timeout = 0) { $ev = caca_get_event($this->dp, $t, $timeout); if(! $ev) { return NULL;