Logitech bus mouse now identifies correctly in Settings;

Serial mouse initialization now sets up rcr_callback_p, fixes emulator segmentation fault on CuteMouse load.
This commit is contained in:
OBattler
2017-08-04 15:18:38 +02:00
parent 374943f4f5
commit f8a92d0165
2 changed files with 2 additions and 1 deletions

View File

@@ -843,7 +843,7 @@ BEGIN
IDS_2170 "Check BPB"
IDS_3072 "None"
IDS_3073 "[Bus] Bus mouse"
IDS_3073 "[Bus] Logitech Bus mouse"
IDS_3074 "[Bus] InPort mouse"
IDS_3075 "[Serial] Mouse Systems mouse"
IDS_3076 "[Serial] Microsoft 2-button mouse"

View File

@@ -224,6 +224,7 @@ sermouse_init(int type)
#else
ms->serial = &serial1;
ms->serial->rcr_callback = sermouse_callback;
ms->serial->rcr_callback_p = ms;
#endif
timer_add(sermouse_timer, &ms->delay, &ms->delay, ms);