11 /* A statically linked driver was named on the compiler's command line.
12 ** Make sure that it is used instead of a dynamic one.
18 /* Use a dynamically loaded driver, by default. */
32 unsigned char Res = joy_load_driver (joy_stddrv);
33 #elif defined(JOYSTICK_DRIVER)
34 unsigned char Res = joy_install (&JOYSTICK_DRIVER);
36 unsigned char Res = joy_install (&joy_static_stddrv);
39 if (Res != JOY_ERR_OK) {
40 cprintf ("Error in joy_load_driver: %u\r\n", Res);
42 cprintf ("os: %u, %s\r\n", _oserror, _stroserror (_oserror));
49 #if defined(__ATARI5200__) || defined(__CREATIVISION__)
50 cprintf ("JOYSTICKS: %d", count);
52 cprintf ("Driver supports %d joystick(s)", count);
55 for (i = 0; i < count; ++i) {
58 #if defined(__ATARI5200__) || defined(__CREATIVISION__)
59 cprintf ("%1d:%-3s%-3s%-3s%-3s%-3s%-3s",
61 JOY_UP(j)? " U " : " - ",
62 JOY_DOWN(j)? " D " : " - ",
63 JOY_LEFT(j)? " L " : " - ",
64 JOY_RIGHT(j)? " R " : " - ",
65 JOY_BTN_1(j)? " 1 " : " - ");
67 cprintf ("%2d: %-6s%-6s%-6s%-6s%-6s%-6s",
69 JOY_UP(j)? " up " : " ---- ",
70 JOY_DOWN(j)? " down " : " ---- ",
71 JOY_LEFT(j)? " left " : " ---- ",
72 JOY_RIGHT(j)? "right " : " ---- ",
73 JOY_BTN_1(j)? "button" : " ---- ");