Skip to content

Commit

Permalink
reapply PR #98 Hid register state fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stlintel committed Oct 17, 2023
1 parent f605dba commit 2b873eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bochs/iodev/usb/usb_hid.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1303,8 +1303,8 @@ void usb_hid_device_c::register_state_specific(bx_list_c *parent)
BXRS_DEC_PARAM_FIELD(list, report_use_id, s.report_use_id);
BXRS_DEC_PARAM_FIELD(list, report_id, s.report_id);
BXRS_DEC_PARAM_FIELD(list, bx_mouse_hid_report_descriptor_len, s.bx_mouse_hid_report_descriptor_len);
new bx_shadow_data_c(list, "bx_mouse_hid_report_descriptor", (Bit8u *) s.bx_mouse_hid_report_descriptor, sizeof(s.bx_mouse_hid_report_descriptor), 1);
new bx_shadow_data_c(list, "model", (Bit8u *) s.model, sizeof(s.model), 1);
new bx_shadow_data_c(list, "bx_mouse_hid_report_descriptor", (Bit8u *) s.bx_mouse_hid_report_descriptor, s.bx_mouse_hid_report_descriptor_len, 0);
new bx_shadow_data_c(list, "model", (Bit8u *) &s.model, sizeof(s.model), 0);
bx_list_c *evbuf = new bx_list_c(list, "kbd_event_buf", "");
char pname[16];
for (Bit8u i = 0; i < BX_KBD_ELEMENTS; i++) {
Expand Down

0 comments on commit 2b873eb

Please sign in to comment.