From: cuz Date: Sun, 16 Mar 2008 09:27:20 +0000 (+0000) Subject: Oliver Schmidt added test output for second fire button. X-Git-Tag: V2.12.0~42 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c7ddd12bba93191c088e9827b297ed3cf190edcf;p=cc65 Oliver Schmidt added test output for second fire button. git-svn-id: svn://svn.cc65.org/cc65/trunk@3815 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/testcode/lib/joy-test.c b/testcode/lib/joy-test.c index 3e1d97bcb..eacafbbba 100644 --- a/testcode/lib/joy-test.c +++ b/testcode/lib/joy-test.c @@ -26,13 +26,14 @@ int main (void) for (i = 0; i < count; ++i) { gotoxy (0, i+1); j = joy_read (i); - cprintf ("%2d: %-6s%-6s%-6s%-6s%-6s", + cprintf ("%2d: %-6s%-6s%-6s%-6s%-6s%-6s", i, (j & joy_masks[JOY_UP])? " up " : " ---- ", (j & joy_masks[JOY_DOWN])? " down " : " ---- ", (j & joy_masks[JOY_LEFT])? " left " : " ---- ", (j & joy_masks[JOY_RIGHT])? "right " : " ---- ", - (j & joy_masks[JOY_FIRE])? " fire " : " ---- "); + (j & joy_masks[JOY_FIRE])? " fire " : " ---- ", + (j & joy_masks[JOY_FIRE2])? "fire2 " : " ---- "); } } return 0;