summaryrefslogtreecommitdiff
path: root/io.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-12-06 19:29:34 -0800
committerMichael Pavone <pavone@retrodev.com>2015-12-06 19:29:34 -0800
commit0da12ea007ff827acf74c489d2f3a95fcf17e6af (patch)
treea3e1be50831b358deee0ed5480501edb59f7fa53 /io.h
parent0f66f8cd940390c5917614e317e9da8a90d53a1f (diff)
Rough emulation of mouse response delays when TR is toggled. Latch current mouse value rather than delta. Some other IO cleanup/fixes
Diffstat (limited to 'io.h')
-rw-r--r--io.h5
1 files changed, 3 insertions, 2 deletions
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;