notaz.gp2x.de
/
megadrive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6d4349f
)
fix an issue of lost inputs in direct control mode
author
notaz
<notasas@gmail.com>
Sat, 8 Nov 2014 00:36:01 +0000
(
02:36
+0200)
committer
notaz
<notasas@gmail.com>
Sat, 8 Nov 2014 00:36:01 +0000
(
02:36
+0200)
host/main.c
patch
|
blob
|
blame
|
history
diff --git
a/host/main.c
b/host/main.c
index
c3a850b
..
73b8a9f
100644
(file)
--- a/
host/main.c
+++ b/
host/main.c
@@
-661,7
+661,7
@@
int main(int argc, char *argv[])
struct teensy_dev dev;
struct usbdevfs_urb urb[URB_CNT];
struct usbdevfs_urb *reaped_urb;
struct teensy_dev dev;
struct usbdevfs_urb urb[URB_CNT];
struct usbdevfs_urb *reaped_urb;
- int fixed_input_changed;
+ int fixed_input_changed
= 0
;
int evdev_fds[16];
int evdev_fd_cnt = 0;
int evdev_support;
int evdev_fds[16];
int evdev_fd_cnt = 0;
int evdev_support;
@@
-925,7
+925,6
@@
int main(int argc, char *argv[])
}
/* something from input devices? */
}
/* something from input devices? */
- fixed_input_changed = 0;
for (i = 0; i < evdev_fd_cnt; i++) {
if (FD_ISSET(evdev_fds[i], &rfds)) {
fixed_input_changed |=
for (i = 0; i < evdev_fd_cnt; i++) {
if (FD_ISSET(evdev_fds[i], &rfds)) {
fixed_input_changed |=
@@
-1071,6
+1070,7
@@
int main(int argc, char *argv[])
perror("USBDEVFS_SUBMITURB PKT_FIXED_STATE");
break;
}
perror("USBDEVFS_SUBMITURB PKT_FIXED_STATE");
break;
}
+ fixed_input_changed = 0;
pending_urbs |= 1 << URB_DATA_OUT;
continue;
}
pending_urbs |= 1 << URB_DATA_OUT;
continue;
}