minor bug fixes

This commit is contained in:
root 2014-03-23 00:12:24 +01:00
parent 8b1ec58829
commit 0f8cc288a5
6 changed files with 49 additions and 2 deletions

View File

@ -112,3 +112,49 @@
1394060723 source:/home/chch/HengLongUDPclient/wansview.c
"wansview.h"
1395529103 source:/root/HengLongUDPclient/henglong.c
"henglong.h"
1395529103 /root/HengLongUDPclient/henglong.h
<linux/input.h>
<stdio.h>
<inttypes.h>
1395529103 source:/root/HengLongUDPclient/main.c
<pthread.h>
<stdio.h>
<stdlib.h>
<string.h>
<unistd.h>
<errno.h>
<fcntl.h>
<dirent.h>
<linux/input.h>
<sys/types.h>
<sys/stat.h>
<sys/select.h>
<sys/time.h>
<termios.h>
<signal.h>
<sys/socket.h>
<netinet/in.h>
<arpa/inet.h>
<inttypes.h>
"henglong.h"
<linux/joystick.h>
"wansview.h"
"extern.h"
1395529103 /root/HengLongUDPclient/wansview.h
<stdio.h>
<string.h>
<unistd.h>
<arpa/inet.h>
<sys/time.h>
1395529103 /root/HengLongUDPclient/extern.h
<stdlib.h>
1395529103 source:/root/HengLongUDPclient/wansview.c
"wansview.h"

Binary file not shown.

View File

@ -4,6 +4,7 @@
void fire(void)
{
system("xte key Return");
system("echo bla");
system("xte \'key Return\'\n");
}

2
main.c
View File

@ -193,7 +193,7 @@ void *joystick_thread_fcn(void * arg)
args->outtty = outttyloc;
args->hl.ignation = (1 & (jsdata.buttons >> 2));
args->hl.fire = (1 & (jsdata.buttons >> 1));
args->hl.fire = (1 & (jsdata.buttons >> 0));
printf("%6d %6d %4x\n", jsdata.x, jsdata.y, jsdata.buttons);
}

BIN
obj/Debug/extern.o Normal file

Binary file not shown.

Binary file not shown.