Lines 1909-1914
Link Here
|
1909 |
logprintf(LOG_ERR, "writing to uinput failed"); |
1909 |
logprintf(LOG_ERR, "writing to uinput failed"); |
1910 |
logperror(LOG_ERR, NULL); |
1910 |
logperror(LOG_ERR, NULL); |
1911 |
} |
1911 |
} |
|
|
1912 |
|
1913 |
/* Need to write sync event */ |
1914 |
memset(&event, 0, sizeof(event)); |
1915 |
event.type = EV_SYN; |
1916 |
event.code = SYN_REPORT; |
1917 |
event.value = 0; |
1918 |
if(write(uinputfd, &event, sizeof(event)) != sizeof(event)) |
1919 |
{ |
1920 |
logprintf(LOG_ERR, "writing EV_SYN to uinput failed"); |
1921 |
logperror(LOG_ERR, NULL); |
1922 |
} |
1912 |
} |
1923 |
} |
1913 |
} |
1924 |
} |
1914 |
#endif |
1925 |
#endif |