diff options
author | Michael Pavone <pavone@retrodev.com> | 2015-12-06 19:29:34 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2015-12-06 19:29:34 -0800 |
commit | 0da12ea007ff827acf74c489d2f3a95fcf17e6af (patch) | |
tree | a3e1be50831b358deee0ed5480501edb59f7fa53 /io.h | |
parent | 0f66f8cd940390c5917614e317e9da8a90d53a1f (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.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |