Mercurial > repos > blastem
diff io.h @ 912:599e2861f484
Rough emulation of mouse response delays when TR is toggled. Latch current mouse value rather than delta. Some other IO cleanup/fixes
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 06 Dec 2015 19:29:34 -0800 |
parents | b5d35222047e |
children | a5a51465f8b0 |
line wrap: on
line diff
--- a/io.h Sun Dec 06 15:42:36 2015 -0800 +++ b/io.h Sun Dec 06 19:29:34 2015 -0800 @@ -34,12 +34,13 @@ int listen_fd; } stream; struct { + uint32_t ready_cycle; uint16_t last_read_x; uint16_t last_read_y; uint16_t cur_x; uint16_t cur_y; - int16_t delta_x; - int16_t delta_y; + uint16_t latched_x; + uint16_t latched_y; uint8_t tr_counter; uint8_t mouse_num; } mouse;