|
From: <sen...@us...> - 2009-02-02 14:45:39
|
Revision: 353
http://open2x.svn.sourceforge.net/open2x/?rev=353&view=rev
Author: senquack
Date: 2009-02-02 14:45:35 +0000 (Mon, 02 Feb 2009)
Log Message:
-----------
Accidentally left out a small change to the touchscreen event struct
Modified Paths:
--------------
trunk/libs-new/sdl/sdl/SDL-1.2.11/src/video/gp2x/gp2x_tslib.c
trunk/libs-new/sdl/sdl/SDL-1.2.11/src/video/gp2x/tslib.h
Modified: trunk/libs-new/sdl/sdl/SDL-1.2.11/src/video/gp2x/gp2x_tslib.c
===================================================================
--- trunk/libs-new/sdl/sdl/SDL-1.2.11/src/video/gp2x/gp2x_tslib.c 2009-01-26 15:34:18 UTC (rev 352)
+++ trunk/libs-new/sdl/sdl/SDL-1.2.11/src/video/gp2x/gp2x_tslib.c 2009-02-02 14:45:35 UTC (rev 353)
@@ -96,7 +96,7 @@
unsigned short pad;
} UCB1X00_TS_EVENT;
-//DKS - Originially, I had made this read multiple samples but it turns out the driver
+//senquack - Originially, I had made this read multiple samples but it turns out the driver
//for the touchscreen is set up to give only one sample per read, so had to go back
//to this optimized version. It should be noted that the device file only ever provides
//8 bytes of data, basically 3shorts: x,y,and pressure, and the old code tried to read
@@ -182,7 +182,7 @@
variance_dev.delta = 30 * 30;
}
-//DKS - added parameter, flush_history, that gets assigned to 1 if a fast movement is
+//senquack - added parameter, flush_history, that gets assigned to 1 if a fast movement is
// detected.. this is so the averaging algorithm will flush its history if
// enough of them are detected
static inline int variance_read(TSDEV *ts, TS_SAMPLE *samp, int nr, int *flush_history)
@@ -234,7 +234,7 @@
variance_dev.flags = (variance_dev.flags & ~VAR_NOISEVALID) |
VAR_SUBMITNOISE;
- //DKS - flush sample history in averaging module
+ //senquack - flush sample history in averaging module
*flush_history = 1;
} else
variance_dev.flags |= VAR_NOISEVALID;
@@ -266,7 +266,7 @@
#define XYHISTLENGTH 15
XYHIST average_xyhist[XYHISTLENGTH];
-//DKS - De-jitterer that can handle high noise level of the GP2X:
+//senquack - New de-jitterer that can handle high noise level of the GP2X:
static inline int average_read(TSDEV *ts, TS_SAMPLE *samp, int nr)
{
@@ -275,8 +275,8 @@
int flush_history = 0; // variance module will tell us if we are getting fast movements
static int flush_count = 0; // when we get enough fast movements, flush the history
- static int xyhist_full = 0; //DKS - when we have a full four samples, this is 1
- static int xyhist_counter = 0; // DKS - how many entires in history?
+ static int xyhist_full = 0; //senquack - when we have a full four samples, this is 1
+ static int xyhist_counter = 0; // senquack - how many entires in history?
static int xyhist_index = 0; //xyhist_index - 1 is index to most-recent sample in array
ret = variance_read(ts, samp, nr, &flush_history);
Modified: trunk/libs-new/sdl/sdl/SDL-1.2.11/src/video/gp2x/tslib.h
===================================================================
--- trunk/libs-new/sdl/sdl/SDL-1.2.11/src/video/gp2x/tslib.h 2009-01-26 15:34:18 UTC (rev 352)
+++ trunk/libs-new/sdl/sdl/SDL-1.2.11/src/video/gp2x/tslib.h 2009-02-02 14:45:35 UTC (rev 353)
@@ -46,7 +46,6 @@
int x;
int y;
unsigned int pressure;
- struct timeval tv;
};
/*
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|