minor bug fixes
This commit is contained in:
parent
8b1ec58829
commit
0f8cc288a5
|
@ -112,3 +112,49 @@
|
||||||
1394060723 source:/home/chch/HengLongUDPclient/wansview.c
|
1394060723 source:/home/chch/HengLongUDPclient/wansview.c
|
||||||
"wansview.h"
|
"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.
3
extern.c
3
extern.c
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
void fire(void)
|
void fire(void)
|
||||||
{
|
{
|
||||||
system("xte key Return");
|
system("echo bla");
|
||||||
|
system("xte \'key Return\'\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
main.c
2
main.c
|
@ -193,7 +193,7 @@ void *joystick_thread_fcn(void * arg)
|
||||||
|
|
||||||
args->outtty = outttyloc;
|
args->outtty = outttyloc;
|
||||||
args->hl.ignation = (1 & (jsdata.buttons >> 2));
|
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);
|
printf("%6d %6d %4x\n", jsdata.x, jsdata.y, jsdata.buttons);
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
BIN
obj/Debug/main.o
BIN
obj/Debug/main.o
Binary file not shown.
Loading…
Reference in New Issue