Welcome to Emulationworld

Forum Index | FAQ | New User | Login | Search

Make a New PostPrevious ThreadView All ThreadsNext ThreadShow in Flat Mode*


SubjectRe: Move/Stylus support and suggestions.. Reply to this message
Posted byexecom_rt
Posted on05/24/02 09:36 AM



Pff !

I've downloaded the latest source code, and found in Cgapi.cpp that the SHFullscreen code was missing ...

Please update !

This will fix also the random flickering and improve speed (no taskbar redraw for example).

I will try to recompile the source code (not the week end sorry) with my modifications to fix that fullscreen issue.

I will also try to add the stylus support in game. if it works, it would be great. Playing arkanoid for example, there is some existing 'break out' games available on pocket pc, and every uses the stylus and it rocks


Also the GXSuspend() / Resume() are never called !

Ok, look this code, they should be modified but this always better application switching and stylus support. for all games if option is enabled..

**********************
// playgame.c
int xRaw, yRaw, buttonsRaw;

int getPenPosition(int *x, int *y)
{
*x = xRaw;
*y = yRaw;
}

int isPenDown()
{
return buttonsRaw;
}

LRESULT CALLBACK MAMECE3_MessageProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
{
LRESULT Result = 0;
switch(Msg)
{
case WM_SETFOCUS:
GAPI_Resume();
break;
case WM_KILLFOCUS:
GAPI_Suspend();
break;

case WM_LBUTTONDOWN:
buttonsRaw|= 1;
xRaw = isLandscape ? 320 - HIWORD(lParam) : LOWORD(lParam);
yRaw = isLandscape ? LOWORD(lParam) : HIWORD(lParam);
break;
case WM_LBUTTONUP:
buttonsRaw&=~1;
break;
case
}
}


// input.c
void osd_trak_read(int player,int *deltax,int *deltay)
{
if (player != 0 || use_mouse == 0)
*deltax = *deltay = 0;
else
{
static int x0, y0;
int x, y;
getPenPosition(&x, &y);
if (isPenDown())
{
*deltax = x - x0;
*deltay = y - y0;
}
else
{
x0 = x;
y0 = y;

}
}
}




-
Entire Thread
Subject  Posted byPosted On
*Move/Stylus support and suggestions..  execom_rt05/23/02 06:07 AM
.*Re: Move/Stylus support and suggestions..  Vidgamer06/27/02 11:28 PM
..*Re: Move/Stylus support and suggestions..  execom_rt06/28/02 05:10 AM
.*Re: Move/Stylus support and suggestions..  finaldave05/23/02 12:38 PM
..*Re: Move/Stylus support and suggestions..  execom_rt05/24/02 05:27 AM
...*Re: Move/Stylus support and suggestions..  finaldave05/24/02 06:52 AM
....*Re: Move/Stylus support and suggestions..  Tekhmaster05/24/02 03:59 PM
.....*Re: Move/Stylus support and suggestions..  execom_rt05/27/02 10:55 AM
......*Re: Move/Stylus support and suggestions..  fused06/10/02 08:30 PM
....*Re: Move/Stylus support and suggestions..  execom_rt05/24/02 09:13 AM
.....*Re: Move/Stylus support and suggestions..  finaldave05/25/02 07:19 AM
......*Re: Move/Stylus support and suggestions..  rjr05/29/02 09:23 PM
.......*Re: Move/Stylus support and suggestions..  finaldave05/30/02 07:31 AM
........*Re: Move/Stylus support and suggestions..  rjr06/01/02 10:48 AM
........*Re: Move/Stylus support and suggestions..  execom_rt05/30/02 09:03 AM
......*Re: Move/Stylus support and suggestions..  execom_rt05/27/02 12:02 PM
......Re: Move/Stylus support and suggestions..  execom_rt05/24/02 09:36 AM
......*Re: Move/Stylus support and suggestions..  finaldave05/25/02 08:27 AM
.......*SHfullscreen   execom_rt05/27/02 07:32 AM
........*Re: SHfullscreen   Tekhmaster05/28/02 06:45 PM
.........*conclusion  execom_rt05/29/02 07:48 AM
..........*Is it NOTHING to do with reading video memory  finaldave05/29/02 01:33 PM
...........*Modified MameCE version available  execom_rt05/30/02 06:00 AM
............*Re: Modified MameCE version available  finaldave05/30/02 07:23 AM
.............*Re: Modified MameCE version available  execom_rt05/30/02 08:46 AM
..............*Re: Modified MameCE version available  finaldave05/31/02 06:09 AM
...............*Is there a developer here ?  execom_rt05/31/02 08:48 AM
................*Re: Is there a developer here ?  Tekhmaster05/31/02 02:57 PM
.................*Re: Is there a developer here ?  finaldave06/02/02 09:09 PM
..................*Re: Is there a developer here ?  Tekhmaster06/02/02 11:47 PM
.........*Re: SHfullscreen   finaldave05/29/02 05:58 AM
..........*Re: SHfullscreen   Tekhmaster05/29/02 06:38 PM
...........*Re: SHfullscreen   execom_rt05/30/02 09:06 AM
...........*Re: SHfullscreen   finaldave05/29/02 07:33 PM
............*Re: SHfullscreen   Tekhmaster05/31/02 03:11 PM
............*Re: SHfullscreen   execom_rt05/30/02 06:03 AM
........*Re: SHfullscreen   finaldave05/27/02 11:34 AM
.........*Re: SHfullscreen   Tekhmaster05/31/02 03:04 PM
..........*Re: SHfullscreen   finaldave06/03/02 01:09 PM
.........*Re: SHfullscreen   execom_rt05/27/02 11:56 AM
..........*Re: SHfullscreen   thekINGpIN06/01/02 08:31 AM