Mercurial > sdl-ios-xcode
diff src/video/fbcon/SDL_fbelo.h @ 4:4f6c5f021323
Date: Thu, 26 Apr 2001 10:46:23 +0200
From: Alexander Pipelka <pipelka@bms-austria.com>
Subject: SDL ELO driver bugfix
Hi Sam!
We noticed that the ELO serial touchscreen controller is quite sensitive
in terms of correct protocol handling.
The current implementation cause some controllers to hangup after some
time (> 24h).
I think the attached patch should fix this (I ran my device more than 3
days without any hangups).
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Thu, 26 Apr 2001 16:54:56 +0000 |
parents | 74212992fb08 |
children | e8157fcb3114 |
line wrap: on
line diff
--- a/src/video/fbcon/SDL_fbelo.h Thu Apr 26 16:52:42 2001 +0000 +++ b/src/video/fbcon/SDL_fbelo.h Thu Apr 26 16:54:56 2001 +0000 @@ -52,4 +52,10 @@ */ int eloParsePacket(unsigned char* mousebuf, int* dx, int* dy, int* button_state); +/* eloReadPosition + read a packet and get the cursor position +*/ + +int eloReadPosition(_THIS, int fd, int* x, int* y, int* button_state, int* realx, int* realy); + #endif /* SDL_fbelo_h */