Merge pull request #2741 from lemondrops/master

Fix Amstrad/Olivetti internal mice not working by explicitly defining the number of buttons
This commit is contained in:
Miran Grča
2022-10-25 23:07:51 +02:00
committed by GitHub
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);