The Following User Says Thank You to juiceme For This Useful Post: | ||
|
2012-10-30
, 16:50
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#32
|
The Following User Says Thank You to juiceme For This Useful Post: | ||
|
2012-10-31
, 21:33
|
Posts: 52 |
Thanked: 33 times |
Joined on Oct 2011
@ Poland, Tricity
|
#33
|
|
2012-11-02
, 07:24
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#34
|
|
2012-11-02
, 07:55
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#35
|
tap=$(evtap -t $touchdevice -m $mapfile -d $timeout -c) ret=$?
|
2012-11-02
, 17:44
|
Posts: 52 |
Thanked: 33 times |
Joined on Oct 2011
@ Poland, Tricity
|
#36
|
while [ true ] do selection=$(/bin/evtap -t /dev/input/"$touch" -m /usr/share/multiboot/touch.map -d "$touchDelay" -xy) echo "xy: $selection" done
The Following User Says Thank You to eccenux For This Useful Post: | ||
|
2012-11-02
, 21:48
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#38
|
|
2012-11-02
, 22:10
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#39
|
int main(int argc, char *argv[]) { struct input_event ievent; int fdev, xaxis, yaxis, flag, ret; if ((fdev = open("/dev/input/ts", O_RDONLY)) < 0) { perror("cannot open input device"); return -1; } while(1) { if((ret = read(fdev ,&ievent ,sizeof(ievent))) < sizeof(ievent)) { printf("\nreceived only %d bytes on read", ret); return -1; } printf("\n%d,\t%d,\t%d", ievent.type, ievent.code, ievent.value); } return 0; }
0, 0, 0 1, 330, 1 3, 0, 657 3, 1, 327 3, 53, 657 3, 54, 327 3, 48, 22 3, 57, 0 0, 2, 0
0, 0, 0 3, 53, 657 3, 54, 327 3, 48, 38 3, 57, 0 0, 2, 0 0, 0, 0 1, 330, 0
|
2012-11-03
, 12:15
|
Posts: 52 |
Thanked: 33 times |
Joined on Oct 2011
@ Poland, Tricity
|
#40
|
The Following User Says Thank You to eccenux For This Useful Post: | ||
At first look I see that you do not have the latest evtap version, I made some changes to it that are not relevant in this case but I recommend using the latest
It might be that there is something wrong with the timeout polling code in evtap, if it behaves in the manner you describe. I see from your preinit script that you use it in one instance having timeout of 1000 ms, so I imagine that it might go so that the code does not continue until the 1s timeout is expired?
However I have tested evtap with different timeouts myself and it should return immediately after a registered screentap even when using long timeouts.