iankelling.org
/
git
/
evhz
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Also show the polling rate for graphics tables
[evhz]
/
evhz.c
diff --git
a/evhz.c
b/evhz.c
index 1588024ba06b69b4daf35de3805f33592da56139..947ab819be91523433dc38226795fb81f31a24f8 100644
(file)
--- a/
evhz.c
+++ b/
evhz.c
@@
-57,7
+57,7
@@
int main(int argc, char *argv[]) {
// List input devices
for(i = 0; i < EVENTS; i++) {
// List input devices
for(i = 0; i < EVENTS; i++) {
- char device[1
8
];
+ char device[1
9
];
sprintf(device, "/dev/input/event%i", i);
events[i].fd = open(device, O_RDONLY);
sprintf(device, "/dev/input/event%i", i);
events[i].fd = open(device, O_RDONLY);
@@
-94,7
+94,7
@@
int main(int argc, char *argv[]) {
continue;
}
continue;
}
- if(event.type == EV_REL) {
+ if(event.type == EV_REL
|| event.type == EV_ABS
) {
double time;
int hz;
double time;
int hz;