From 0da12ea007ff827acf74c489d2f3a95fcf17e6af Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sun, 6 Dec 2015 19:29:34 -0800 Subject: Rough emulation of mouse response delays when TR is toggled. Latch current mouse value rather than delta. Some other IO cleanup/fixes --- io.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'io.h') diff --git a/io.h b/io.h index 964dee2..2786477 100644 --- a/io.h +++ b/io.h @@ -34,12 +34,13 @@ typedef struct { 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; -- cgit v1.2.3