From 6fa603839e7678506a670be7e32a1f85f06a784d Mon Sep 17 00:00:00 2001 From: Jasmine Iwanek Date: Sun, 19 Dec 2021 22:44:24 -0500 Subject: [PATCH] Add support for a joystick port at 0x209 --- src/game/gameport.c | 11 ++++++++++- src/include/86box/gameport.h | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/game/gameport.c b/src/game/gameport.c index 32fa572e6..145262278 100644 --- a/src/game/gameport.c +++ b/src/game/gameport.c @@ -446,7 +446,7 @@ const device_t gameport_device = { }; const device_t gameport_201_device = { - "Game port (port 201h only)", + "Game port (Port 201h only)", 0, 0x010201, gameport_init, gameport_close, @@ -463,6 +463,15 @@ const device_t gameport_208_device = { NULL }; +const device_t gameport_209_device = { + "Game port (Port 209h only)", + 0, 0x010209, + gameport_init, + gameport_close, + NULL, { NULL }, NULL, + NULL +}; + const device_t gameport_pnp_device = { "Game port (Plug and Play only)", 0, 0x080000, diff --git a/src/include/86box/gameport.h b/src/include/86box/gameport.h index 486939af9..49a6980de 100644 --- a/src/include/86box/gameport.h +++ b/src/include/86box/gameport.h @@ -109,6 +109,7 @@ extern "C" { extern const device_t gameport_device; extern const device_t gameport_201_device; extern const device_t gameport_208_device; +extern const device_t gameport_209_device; extern const device_t gameport_pnp_device; extern const device_t gameport_pnp_6io_device; extern const device_t gameport_sio_device;