Searched refs:mousebuf (Results 1 - 4 of 4) sorted by relevance

/external/qemu/distrib/sdl-1.2.15/src/video/fbcon/
H A DSDL_fbelo.h47 int eloParsePacket(unsigned char* mousebuf, int* dx, int* dy, int* button_state);
H A DSDL_fbelo.c81 int eloParsePacket(unsigned char* mousebuf, int* dx, int* dy, int* button_state) { argument
88 if (mousebuf[1] != ELO_TOUCH_BYTE) {
92 x = ((mousebuf[4] << 8) | mousebuf[3]);
93 y = ((mousebuf[6] << 8) | mousebuf[5]);
96 *dx = ((mousebuf[4] << 8) | mousebuf[3]);
97 *dy = ((mousebuf[6] << 8) | mousebuf[
[all...]
H A DSDL_fbevents.c766 static unsigned char mousebuf[BUFSIZ]; local
814 nread = read(mouse_fd, &mousebuf[start], BUFSIZ-start);
834 if ( (mousebuf[i] & 0xF8) != 0x80 ) {
840 button = (~mousebuf[i]) & 0x07;
841 dx = (signed char)(mousebuf[i+1]) +
842 (signed char)(mousebuf[i+3]);
843 dy = -((signed char)(mousebuf[i+2]) +
844 (signed char)(mousebuf[i+4]));
848 if ( (mousebuf[i] & 0xC0) != 0 ) {
854 button = (mousebuf[
[all...]
/external/qemu/distrib/sdl-1.2.15/src/video/ps2gs/
H A DSDL_gsevents.c619 static unsigned char mousebuf[BUFSIZ]; local
629 read(mouse_fd, mousebuf, BUFSIZ);
649 nread = read(mouse_fd, &mousebuf[start], BUFSIZ-start);
663 if ( (mousebuf[i] & 0xF8) != 0x80 ) {
669 button = (~mousebuf[i]) & 0x07;
670 dx = (signed char)(mousebuf[i+1]) +
671 (signed char)(mousebuf[i+3]);
672 dy = -((signed char)(mousebuf[i+2]) +
673 (signed char)(mousebuf[i+4]));
677 if ( (mousebuf[
[all...]

Completed in 251 milliseconds