15 unsigned char Res = joy_load_driver (joy_stddrv);
16 if (Res != JOY_ERR_OK) {
17 cprintf ("Error in joy_load_driver: %u\r\n", Res);
18 cprintf ("os: %u, %s\r\n", _oserror, _stroserror (_oserror));
24 cprintf ("Driver supports %d joystick(s)", count);
26 for (i = 0; i < count; ++i) {
29 cprintf ("%2d: %-6s%-6s%-6s%-6s%-6s",
31 (j & joy_masks[JOY_UP])? " up " : " ---- ",
32 (j & joy_masks[JOY_DOWN])? " down " : " ---- ",
33 (j & joy_masks[JOY_LEFT])? " left " : " ---- ",
34 (j & joy_masks[JOY_RIGHT])? "right " : " ---- ",
35 (j & joy_masks[JOY_FIRE])? " fire " : " ---- ");