|
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; } } }
|