Fix Amstrad/Olivetti internal mice not working by explicitly defining the number of buttons

This commit is contained in:
Alexander Babikov
2022-10-25 23:46:16 +05:00
parent e7a078b10a
commit 8096a3095e
2 changed files with 2 additions and 0 deletions

View File

@@ -2410,6 +2410,7 @@ machine_amstrad_init(const machine_t *model, int type)
if (mouse_type == MOUSE_TYPE_INTERNAL) {
/* Tell mouse driver about our internal mouse. */
mouse_reset();
mouse_set_buttons(2);
mouse_set_poll(ms_poll, ams);
}

View File

@@ -426,6 +426,7 @@ m24_kbd_init(m24_kbd_t *kbd)
/* Tell mouse driver about our internal mouse. */
mouse_reset();
mouse_set_buttons(2);
mouse_set_poll(ms_poll, kbd);
keyboard_set_table(scancode_xt);