9 /* A statically linked driver was named on the compiler's command line.
10 ** Make sure that it is used instead of a dynamic one.
16 #if defined(__NES__) || defined(__ATARI5200__)
28 unsigned char Res = joy_load_driver (joy_stddrv);
29 #elif defined(MOUSE_DRIVER)
30 unsigned char Res = joy_install (&MOUSE_DRIVER);
32 unsigned char Res = joy_install (&joy_static_stddrv);
35 if (Res != JOY_ERR_OK) {
36 cprintf ("Error in joy_load_driver: %u\r\n", Res);
38 cprintf ("os: %u, %s\r\n", _oserror, _stroserror (_oserror));
46 cprintf ("JOYSTICKS: %d", count);
48 cprintf ("Driver supports %d joystick(s)", count);
51 for (i = 0; i < count; ++i) {
55 cprintf ("%1d:%-3s%-3s%-3s%-3s%-3s%-3s",
57 (j & joy_masks[JOY_UP])? " U " : " u ",
58 (j & joy_masks[JOY_DOWN])? " D " : " d ",
59 (j & joy_masks[JOY_LEFT])? " L " : " l ",
60 (j & joy_masks[JOY_RIGHT])? " R " : " r ",
61 (j & joy_masks[JOY_FIRE])? " 1 " : " ",
62 (j & joy_masks[JOY_FIRE2])? " 2 " : " ");
64 cprintf ("%2d: %-6s%-6s%-6s%-6s%-6s%-6s",
66 (j & joy_masks[JOY_UP])? " up " : " ---- ",
67 (j & joy_masks[JOY_DOWN])? " down " : " ---- ",
68 (j & joy_masks[JOY_LEFT])? " left " : " ---- ",
69 (j & joy_masks[JOY_RIGHT])? "right " : " ---- ",
70 (j & joy_masks[JOY_FIRE])? " fire " : " ---- ",
71 (j & joy_masks[JOY_FIRE2])? "fire2 " : " ---- ");