From: uz Date: Tue, 6 Jan 2009 17:44:20 +0000 (+0000) Subject: The NES must have the joystick driver linked in. Change by Stefan Haubenthal. X-Git-Tag: V2.13.0rc1~350 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=368e88128803890f4e002be17f3c807071207c00;p=cc65 The NES must have the joystick driver linked in. Change by Stefan Haubenthal. git-svn-id: svn://svn.cc65.org/cc65/trunk@3905 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/testcode/lib/joy-test.c b/testcode/lib/joy-test.c index eacafbbba..e1f44f8e5 100644 --- a/testcode/lib/joy-test.c +++ b/testcode/lib/joy-test.c @@ -12,7 +12,12 @@ int main (void) unsigned char count; unsigned char i; +#ifdef __NES__ + extern void *co65_joy; + unsigned char Res = joy_install (&co65_joy); +#else unsigned char Res = joy_load_driver (joy_stddrv); +#endif if (Res != JOY_ERR_OK) { cprintf ("Error in joy_load_driver: %u\r\n", Res); cprintf ("os: %u, %s\r\n", _oserror, _stroserror (_oserror));