diff --git a/src/devices/bus/msx/ctrl/xe1ap.cpp b/src/devices/bus/msx/ctrl/xe1ap.cpp index 8badb0cb997..a78477c12c7 100644 --- a/src/devices/bus/msx/ctrl/xe1ap.cpp +++ b/src/devices/bus/msx/ctrl/xe1ap.cpp @@ -29,13 +29,13 @@ INPUT_PORTS_START(xe1ap) PORT_BIT(0xfc00, IP_ACTIVE_LOW, IPT_UNUSED) PORT_START("CH0") - PORT_BIT(0xff, 0x80, IPT_AD_STICK_Y) PORT_SENSITIVITY(50) PORT_KEYDELTA(50) + PORT_BIT(0xff, 0x80, IPT_AD_STICK_Y) PORT_SENSITIVITY(50) PORT_KEYDELTA(50) PORT_START("CH1") - PORT_BIT(0xff, 0x80, IPT_AD_STICK_X) PORT_SENSITIVITY(50) PORT_KEYDELTA(50) + PORT_BIT(0xff, 0x80, IPT_AD_STICK_X) PORT_SENSITIVITY(50) PORT_KEYDELTA(50) PORT_START("CH2") - PORT_BIT(0xff, 0x80, IPT_PADDLE_V) PORT_REVERSE PORT_SENSITIVITY(50) PORT_KEYDELTA(50) + PORT_BIT(0xff, 0x80, IPT_PADDLE_V) PORT_SENSITIVITY(50) PORT_KEYDELTA(50) PORT_START("CH3") PORT_BIT(0xff, 0x00, IPT_UNUSED) diff --git a/src/devices/bus/sms_ctrl/xe1ap.cpp b/src/devices/bus/sms_ctrl/xe1ap.cpp index f29d6a53e24..e14c093490e 100644 --- a/src/devices/bus/sms_ctrl/xe1ap.cpp +++ b/src/devices/bus/sms_ctrl/xe1ap.cpp @@ -29,13 +29,13 @@ INPUT_PORTS_START( sms_xe1ap ) PORT_BIT(0xfc00, IP_ACTIVE_LOW, IPT_UNUSED) PORT_START("CH0") - PORT_BIT(0xff, 0x80, IPT_AD_STICK_Y) PORT_SENSITIVITY(50) PORT_KEYDELTA(50) + PORT_BIT(0xff, 0x80, IPT_AD_STICK_Y) PORT_SENSITIVITY(50) PORT_KEYDELTA(50) PORT_START("CH1") - PORT_BIT(0xff, 0x80, IPT_AD_STICK_X) PORT_SENSITIVITY(50) PORT_KEYDELTA(50) + PORT_BIT(0xff, 0x80, IPT_AD_STICK_X) PORT_SENSITIVITY(50) PORT_KEYDELTA(50) PORT_START("CH2") - PORT_BIT(0xff, 0x80, IPT_PADDLE_V) PORT_REVERSE PORT_SENSITIVITY(50) PORT_KEYDELTA(50) + PORT_BIT(0xff, 0x80, IPT_PADDLE_V) PORT_SENSITIVITY(50) PORT_KEYDELTA(50) PORT_START("CH3") PORT_BIT(0xff, 0x00, IPT_UNUSED) diff --git a/src/devices/machine/micomxe1a.cpp b/src/devices/machine/micomxe1a.cpp index 36a971c804a..0a88b855da2 100644 --- a/src/devices/machine/micomxe1a.cpp +++ b/src/devices/machine/micomxe1a.cpp @@ -178,8 +178,8 @@ u8 micom_xe_1a_device::out_r() { u8 const z = m_analog_callback(2); u8 const result = - ((0xc0 > z) ? 0x01 : 0x00) | // Throttle Up - ((0x40 <= z) ? 0x02 : 0x00) | // Throttle Down + ((0x40 <= z) ? 0x01 : 0x00) | // Throttle Up + ((0xc0 > z) ? 0x02 : 0x00) | // Throttle Down (BIT(buttons, 1) << 2) | // C (BIT(buttons, 0) << 3) | // D (BIT(buttons, 7) << 4) | // E1 @@ -234,7 +234,7 @@ WRITE_LINE_MEMBER(micom_xe_1a_device::req_w) m_data[2] = BIT(analog[2], 4, 4) | (BIT(analog[3], 4, 4) << 4); m_data[3] = BIT(analog[0], 0, 4) | (BIT(analog[1], 0, 4) << 4); m_data[4] = BIT(analog[2], 0, 4) | (BIT(analog[3], 0, 4) << 4); - m_data[5] = BIT(buttons, 8, 8) & ((BIT(buttons, 6, 2) << 2) | 0xf3); + m_data[5] = BIT(buttons, 8, 8) & ((BIT(buttons, 2, 2) << 2) | 0xf3); // takes a while to respond m_output_timer->adjust(attotime::from_nsec(50'000), 0);