1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-11 05:29:33 +00:00

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
This commit is contained in:
uz 2009-01-06 17:44:20 +00:00
parent 308ceeacf9
commit 368e881288

View File

@ -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));