From 1ace98f656abbdd9e84fe92e26fd985f4961ed5b Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 21 Aug 2023 07:21:19 +0200 Subject: [PATCH] Corrected the Amstrad keyboards. --- src/machine/m_amstrad.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/machine/m_amstrad.c b/src/machine/m_amstrad.c index 091642287..826474c16 100644 --- a/src/machine/m_amstrad.c +++ b/src/machine/m_amstrad.c @@ -2598,10 +2598,10 @@ machine_amstrad_init(const machine_t *model, int type) io_sethandler(0x0060, 7, kbd_read, NULL, NULL, kbd_write, NULL, NULL, ams); timer_add(&ams->send_delay_timer, kbd_poll, ams, 1); - if (type == AMS_PC200) - keyboard_set_table(scancode_pc200); - else + if (type == AMS_PC1512) keyboard_set_table(scancode_xt); + else + keyboard_set_table(scancode_pc200); keyboard_send = kbd_adddata_ex; keyboard_scan = 1; keyboard_set_is_amstrad(((type == AMS_PC1512) || (type == AMS_PC1640)) ? 0 : 1);