For anyone who is interested, the problem was, that the xorg driver arranges the pixel in a different way in the memory than the nVidia driver: in the upperleft corner is the first pixel for both...
Type: Posts; User: tsoj
For anyone who is interested, the problem was, that the xorg driver arranges the pixel in a different way in the memory than the nVidia driver: in the upperleft corner is the first pixel for both...
it was solved by openig the file just once, thank you!
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
char mice_data[3];
int mice_position(){
int fd = open("/dev/input/mice", O_RDWR |O_NONBLOCK);
Thanks!, the 'fflush(stdout)' worked.
I also tried to put a O_NONBLOCK flag into the open()-function and i also tried it with a if statement with a pollfunction:
...
struct pollfd fds[1];...
for the NVIDIA-driver:
14930
and for the xorg-driver:
14931
Hello,
i have this code:
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
char mice_data[3];
Hello,
i have a problem with the linux-framebuffer and this code:
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include...