mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 19:29:37 +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:
parent
308ceeacf9
commit
368e881288
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user