16 extern void *co65_joy;
17 unsigned char Res = joy_install (&co65_joy);
19 unsigned char Res = joy_load_driver (joy_stddrv);
21 if (Res != JOY_ERR_OK) {
22 cprintf ("Error in joy_load_driver: %u\r\n", Res);
23 cprintf ("os: %u, %s\r\n", _oserror, _stroserror (_oserror));
29 cprintf ("Driver supports %d joystick(s)", count);
31 for (i = 0; i < count; ++i) {
34 cprintf ("%2d: %-6s%-6s%-6s%-6s%-6s%-6s",
36 (j & joy_masks[JOY_UP])? " up " : " ---- ",
37 (j & joy_masks[JOY_DOWN])? " down " : " ---- ",
38 (j & joy_masks[JOY_LEFT])? " left " : " ---- ",
39 (j & joy_masks[JOY_RIGHT])? "right " : " ---- ",
40 (j & joy_masks[JOY_FIRE])? " fire " : " ---- ",
41 (j & joy_masks[JOY_FIRE2])? "fire2 " : " ---- ");