Hello !
When compiling SDL-1.2 with CYGWIN i get an error message,
that GetLastStylusPos in WinDIB Events is not defined :---------------------------------
#ifdef _WIN32_WCE
static BOOL GetLastStylusPos(POINT* ptLast)
{
BOOL bResult = FALSE;
UINT nRet;
GetMouseMovePoints(ptLast, 1, &nRet);
if ( nRet == 1 ) {
ptLast->x /= 4;
ptLast->y /= 4;
bResult = TRUE;
}
return bResult;
}
#endif
static void DIB_GenerateMouseMotionEvent(_THIS)
{
extern int mouse_relative;
extern int posted;
POINT mouse;
if(!GetCursorPos( &mouse ) && !GetLastStylusPos( &mouse )) return;
As you can see there is a special definition of GetLastStylusPos for Win CE,
but where does the definition for the normal Windows versions come from ?
A grep in the Win32 API directory of CYGWIN had no success and
a google search for GetLastStylusPos was also not successfull.
CU
slouken
#2
Fixed, thanks!On Mon, Sep 21, 2009 at 6:03 PM, Torsten Giebl wrote:
Hello !
When compiling SDL-1.2 with CYGWIN i get an error message,
that GetLastStylusPos in WinDIB Events is not defined :
#ifdef _WIN32_WCE
static BOOL GetLastStylusPos(POINT* ptLast)
{
? ?BOOL bResult = FALSE;
? ?UINT nRet;
? ?GetMouseMovePoints(ptLast, 1, &nRet);
? ?if ( nRet == 1 ) {
? ? ? ?ptLast->x /= 4;
? ? ? ?ptLast->y /= 4;
? ? ? ?bResult = TRUE;
? ?}
? ?return bResult;
}
#endif
static void DIB_GenerateMouseMotionEvent(_THIS)
{
? ? ? ?extern int mouse_relative;
? ? ? ?extern int posted;
? ? ? ?POINT mouse;
? ? ? ?if(!GetCursorPos( &mouse ) && !GetLastStylusPos( &mouse )) return;
As you can see there is a special definition of GetLastStylusPos for Win CE,
but where does the definition for the normal Windows versions come from ?
A grep in the Win32 API directory of CYGWIN had no success and
a google search for GetLastStylusPos was also not successfull.
CU
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
–
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC