Mercurial > repos > blastem
comparison 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 |
comparison
equal
deleted
inserted
replaced
911:73732ae76fa8 | 912:599e2861f484 |
---|---|
32 struct { | 32 struct { |
33 int data_fd; | 33 int data_fd; |
34 int listen_fd; | 34 int listen_fd; |
35 } stream; | 35 } stream; |
36 struct { | 36 struct { |
37 uint32_t ready_cycle; | |
37 uint16_t last_read_x; | 38 uint16_t last_read_x; |
38 uint16_t last_read_y; | 39 uint16_t last_read_y; |
39 uint16_t cur_x; | 40 uint16_t cur_x; |
40 uint16_t cur_y; | 41 uint16_t cur_y; |
41 int16_t delta_x; | 42 uint16_t latched_x; |
42 int16_t delta_y; | 43 uint16_t latched_y; |
43 uint8_t tr_counter; | 44 uint8_t tr_counter; |
44 uint8_t mouse_num; | 45 uint8_t mouse_num; |
45 } mouse; | 46 } mouse; |
46 } device; | 47 } device; |
47 uint8_t output; | 48 uint8_t output; |