Skip to content

Commit

Permalink
testkit: Rename joystick, ... test to "Controller Ports Test"
Browse files Browse the repository at this point in the history
  • Loading branch information
keirf committed Sep 29, 2020
1 parent 126046e commit 6079ef5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions testkit/joymouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
* joymouse.c
*
* Test the two standard 9-pin general-purpose controller ports.
* Supports three-button mouse, two-button joystick, and seven-button gamepad.
* Supports three-button mouse, two-button joystick, seven-button gamepad,
* and analog (aka proportional) controllers.
*
* Written & released by Keir Fraser <[email protected]>
*
Expand Down Expand Up @@ -136,7 +137,7 @@ static uint32_t read_gamepad(uint8_t port, volatile struct amiga_cia *_ciaa)
void joymousecheck(void)
{
char s[80];
struct char_row r = { .x = 8, .y = 1, .s = s };
struct char_row r = { .x = 11, .y = 1, .s = s };
uint16_t joydat[2], newjoydat[2], _potgo = 0;
uint8_t key, nr_box = 0;
unsigned int port, i, j;
Expand All @@ -158,7 +159,7 @@ void joymousecheck(void)

print_menu_nav_line();

sprintf(s, "-- Mouse/Joystick/Gamepad Test --");
sprintf(s, "-- Controller Ports Test --");
print_line(&r);
r.x = 0;
r.y += 2;
Expand Down
4 changes: 2 additions & 2 deletions testkit/testkit.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* - Memory
* - Keyboard
* - Floppy Drive
* - Joystick / Mouse
* - Controller Ports
* - Audio
* - Video
* - CIA Timers
Expand Down Expand Up @@ -911,7 +911,7 @@ static void mainmenu(void)
{ memcheck, "Memory" },
{ kbdcheck, "Keyboard" },
{ floppycheck, "Floppy Drive" },
{ joymousecheck, "Mouse, Joystick, Gamepad" },
{ joymousecheck, "Controller Ports" },
{ audiocheck, "Audio" },
{ videocheck, "Video" },
{ ciacheck, "CIA, Chipset, Batt.Clock" },
Expand Down

0 comments on commit 6079ef5

Please sign in to comment.