Skip to content

Commit

Permalink
noted
Browse files Browse the repository at this point in the history
  • Loading branch information
joncampbell123 committed Dec 22, 2023
1 parent 0ae8cdd commit 51ab9fc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/hardware/keyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2252,6 +2252,16 @@ uint8_t p7fd9_8255_mouse_latch = 0;
uint8_t p7fd8_8255_mouse_int_enable = 0;

void pc98_mouse_movement_apply(int x,int y) {
/* NTS: Contrary to initial impressions, bus mice do not clip
* the counter values to stay within signed integer range,
* they just count.
*
* Also newer hardware is said to auto-reset the counter
* when reading, instead of on bit 7.
*
* According to Nanshiki: [https://github.com/joncampbell123/dosbox-x/pull/4697]
*
* -- 2023/12/21 J.C. */
p7fd9_8255_mouse_x += x;
p7fd9_8255_mouse_y += y;
}
Expand Down

0 comments on commit 51ab9fc

Please sign in to comment.