Skip to content

Commit

Permalink
input tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
David Haywood committed Dec 19, 2024
1 parent 1aca3c2 commit 2920d29
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/mame/tvgames/xavix_2000.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,13 @@ static INPUT_PORTS_START( epo_sdb )
PORT_INCLUDE(xavix)

PORT_MODIFY("MOUSE0X")
PORT_BIT( 0xff, 0x00, IPT_AD_STICK_X ) PORT_SENSITIVITY(25) PORT_KEYDELTA(32) PORT_REVERSE PORT_PLAYER(1)
PORT_BIT( 0xff, 0x01, IPT_AD_STICK_X ) PORT_MINMAX(0x01, 0xfe) PORT_SENSITIVITY(25) PORT_KEYDELTA(32) PORT_REVERSE PORT_PLAYER(1)
PORT_MODIFY("MOUSE0Y")
PORT_BIT( 0xff, 0x00, IPT_AD_STICK_Y ) PORT_SENSITIVITY(25) PORT_KEYDELTA(32) PORT_PLAYER(1)
PORT_BIT( 0xff, 0x01, IPT_AD_STICK_Y ) PORT_MINMAX(0x01, 0xfe) PORT_SENSITIVITY(25) PORT_KEYDELTA(32) PORT_PLAYER(1)
PORT_MODIFY("MOUSE1X")
PORT_BIT( 0xff, 0x00, IPT_AD_STICK_X ) PORT_SENSITIVITY(25) PORT_KEYDELTA(32) PORT_REVERSE PORT_PLAYER(2)
PORT_BIT( 0xff, 0x01, IPT_AD_STICK_X ) PORT_MINMAX(0x01, 0xfe) PORT_SENSITIVITY(25) PORT_KEYDELTA(32) PORT_REVERSE PORT_PLAYER(2)
PORT_MODIFY("MOUSE1Y")
PORT_BIT( 0xff, 0x00, IPT_AD_STICK_Y ) PORT_SENSITIVITY(25) PORT_KEYDELTA(32) PORT_PLAYER(2)
PORT_BIT( 0xff, 0x01, IPT_AD_STICK_Y ) PORT_MINMAX(0x01, 0xfe) PORT_SENSITIVITY(25) PORT_KEYDELTA(32) PORT_PLAYER(2)

PORT_MODIFY("IN0")
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2)
Expand Down
8 changes: 4 additions & 4 deletions src/mame/tvgames/xavix_2000.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ class xavix_2000_nv_sdb_state : public xavix_state
protected:

private:
uint8_t sdb_anport0_r() { return m_mouse0x->read()^0x7f; }
uint8_t sdb_anport1_r() { return m_mouse0y->read()^0x7f; }
uint8_t sdb_anport2_r() { return m_mouse1x->read()^0x7f; }
uint8_t sdb_anport3_r() { return m_mouse1y->read()^0x7f; }
uint8_t sdb_anport0_r() { return (m_mouse0x->read()^0x7f)+1; }
uint8_t sdb_anport1_r() { return (m_mouse0y->read()^0x7f)+1; }
uint8_t sdb_anport2_r() { return (m_mouse1x->read()^0x7f)+1; }
uint8_t sdb_anport3_r() { return (m_mouse1y->read()^0x7f)+1; }
};

#endif // MAME_TVGAMES_XAVIX_2000_H

0 comments on commit 2920d29

Please sign in to comment.