Lines Matching refs:ev
712 struct input_event ev; in ptr_move() local
719 memset(&ev, 0, sizeof(ev)); in ptr_move()
723 gettimeofday(&ev.time, NULL); in ptr_move()
724 ev.type = EV_REL; in ptr_move()
725 ev.code = REL_Y; in ptr_move()
726 ev.value = dy; in ptr_move()
727 write(d, &ev, sizeof(ev)); in ptr_move()
729 ev.type = EV_REL; in ptr_move()
730 ev.code = REL_X; in ptr_move()
731 ev.value = dx; in ptr_move()
732 write(d, &ev, sizeof(ev)); in ptr_move()
734 ev.type = EV_SYN; in ptr_move()
735 ev.code = SYN_REPORT; in ptr_move()
736 ev.value = 0; in ptr_move()
737 write(d, &ev, sizeof(ev)); in ptr_move()
757 struct input_event ev; in ptr_abs() local
765 memset(&ev, 0, sizeof(ev)); in ptr_abs()
776 gettimeofday(&ev.time, NULL); in ptr_abs()
777 ev.type = EV_ABS; in ptr_abs()
778 ev.code = ABS_Y; in ptr_abs()
779 ev.value = y; in ptr_abs()
780 write(d, &ev, sizeof(ev)); in ptr_abs()
782 ev.type = EV_ABS; in ptr_abs()
783 ev.code = ABS_X; in ptr_abs()
784 ev.value = x; in ptr_abs()
785 write(d, &ev, sizeof(ev)); in ptr_abs()
788 ev.type = EV_ABS; in ptr_abs()
789 ev.code = ABS_PRESSURE; in ptr_abs()
790 ev.value = p; in ptr_abs()
791 write(d, &ev, sizeof(ev)); in ptr_abs()
794 ev.type = EV_SYN; in ptr_abs()
795 ev.code = SYN_REPORT; in ptr_abs()
796 ev.value = 0; in ptr_abs()
797 write(d, &ev, sizeof(ev)); in ptr_abs()
945 struct input_event ev; in button_click() local
954 memset(&ev, 0, sizeof(ev)); in button_click()
955 gettimeofday(&ev.time, NULL); in button_click()
956 ev.type = EV_KEY; in button_click()
957 ev.value = down; in button_click()
960 ev.code = BTN_TOUCH; in button_click()
963 ev.code = BTN_LEFT; in button_click()
965 ev.code = BTN_MIDDLE; in button_click()
967 ev.code = BTN_RIGHT; in button_click()
969 ev.code = BTN_FORWARD; in button_click()
971 ev.code = BTN_BACK; in button_click()
976 write(d, &ev, sizeof(ev)); in button_click()
978 ev.type = EV_SYN; in button_click()
979 ev.code = SYN_REPORT; in button_click()
980 ev.value = 0; in button_click()
981 write(d, &ev, sizeof(ev)); in button_click()
1224 struct input_event ev; in uinput_key_command() local
1247 memset(&ev, 0, sizeof(ev)); in uinput_key_command()
1248 gettimeofday(&ev.time, NULL); in uinput_key_command()
1249 ev.type = EV_KEY; in uinput_key_command()
1250 ev.code = (unsigned char) scancode; in uinput_key_command()
1251 ev.value = down; in uinput_key_command()
1253 write(d, &ev, sizeof(ev)); in uinput_key_command()
1255 ev.type = EV_SYN; in uinput_key_command()
1256 ev.code = SYN_REPORT; in uinput_key_command()
1257 ev.value = 0; in uinput_key_command()
1258 write(d, &ev, sizeof(ev)); in uinput_key_command()