Skip to content

Conversation

@felipesanches
Copy link
Contributor

by Tecnologia em Micro Sistemas (Brazilian company), 1988

Screenshot From 2025-10-18 21-24-14

Copy link
Contributor

@MooglyGuy MooglyGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the one thing I tagged, this looks great.

INPUT_PORTS_END


#define MAIN_CLOCK 3.579545_MHz_XTAL
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you be alright with making this a static member of the class instead of using a #define? I'm not super bothered about it either way, but it caught my eye by looking a bit out-of-place here.

{
for (u8 i=0; i<7; i++)
if (!BIT(m_scan, i))
return m_row[i]->read();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't that an and of all the outputs for which a m_scan bit is zero?

Copy link
Contributor Author

@felipesanches felipesanches Oct 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think that's more accurate, indeed. I've just fixed it. Thanks!

};


void vet3000_state::keyboard_w(u8 data){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Random { at end of line.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also fixed the formatting now.

@galibert galibert merged commit 9b01a67 into mamedev:master Oct 22, 2025
5 of 6 checks passed
@felipesanches
Copy link
Contributor Author

Thanks!

Comment on lines +100 to +107
PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_OTHER) PORT_CODE(KEYCODE_1)
PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_OTHER) PORT_CODE(KEYCODE_Q)
PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_OTHER) PORT_CODE(KEYCODE_A)
PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_OTHER) PORT_CODE(KEYCODE_LSHIFT) PORT_CODE(KEYCODE_RSHIFT)
PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_OTHER) PORT_CODE(KEYCODE_7)
PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_OTHER) PORT_CODE(KEYCODE_U)
PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_OTHER) PORT_CODE(KEYCODE_J)
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_OTHER) PORT_CODE(KEYCODE_N)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should really be using IPT_KEYBOARD and PORT_NAME or PORT_CHAR for all the keys. It’s not going to be a good experience like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants