From 368e88128803890f4e002be17f3c807071207c00 Mon Sep 17 00:00:00 2001 From: uz Date: Tue, 6 Jan 2009 17:44:20 +0000 Subject: [PATCH] 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 --- testcode/lib/joy-test.c | 5 +++++ 1 file changed, 5 insertions(+) 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)); -- 2.39.5