display a dot for mouse position for debugging

This commit is contained in:
dborth 2008-09-11 04:42:43 +00:00
parent 48618fddaf
commit 55795bcacf

View File

@ -481,7 +481,7 @@ void S9xUnmapAllControls(void){
mouse[i].cur_x=mouse[i].cur_y=0; mouse[i].cur_x=mouse[i].cur_y=0;
mouse[i].buttons=1; mouse[i].buttons=1;
mouse[i].ID=InvalidControlID; mouse[i].ID=InvalidControlID;
if(!(mouse[i].crosshair.set&1)) mouse[i].crosshair.img=0; // no image for mouse because its only logical position is game-specific, not known by the emulator if(!(mouse[i].crosshair.set&1)) mouse[i].crosshair.img=1; // no image for mouse because its only logical position is game-specific, not known by the emulator
if(!(mouse[i].crosshair.set&2)) mouse[i].crosshair.fg=5; if(!(mouse[i].crosshair.set&2)) mouse[i].crosshair.fg=5;
if(!(mouse[i].crosshair.set&4)) mouse[i].crosshair.bg=1; if(!(mouse[i].crosshair.set&4)) mouse[i].crosshair.bg=1;
justifier.x[i]=justifier.y[i]=0; justifier.x[i]=justifier.y[i]=0;
@ -1677,14 +1677,14 @@ void S9xApplyCommand(s9xcommand_t cmd, int16 data1, int16 data2){
S9xDisplayStateChange("Interpolated sound", Settings.InterpolatedSound); S9xDisplayStateChange("Interpolated sound", Settings.InterpolatedSound);
break; break;
case LoadFreezeFile: case LoadFreezeFile:
#ifndef NGC #ifndef NGC
S9xUnfreezeGame(S9xChooseFilename(TRUE)); S9xUnfreezeGame(S9xChooseFilename(TRUE));
#endif #endif
break; break;
case SaveFreezeFile: case SaveFreezeFile:
#ifndef NGC #ifndef NGC
S9xFreezeGame(S9xChooseFilename(FALSE)); S9xFreezeGame(S9xChooseFilename(FALSE));
#endif #endif
break; break;
case LoadOopsFile: case LoadOopsFile:
{ {
@ -1699,7 +1699,7 @@ void S9xApplyCommand(s9xcommand_t cmd, int16 data1, int16 data2){
S9xGetDirectory(SNAPSHOT_DIR), SLASH_STR, def, S9xGetDirectory(SNAPSHOT_DIR), SLASH_STR, def,
_MAX_EXT-1, "oops"); _MAX_EXT-1, "oops");
#ifndef NGC #ifndef NGC
if (S9xLoadSnapshot (filename)) if (S9xLoadSnapshot (filename))
{ {
sprintf (buf, "%s.%.*s loaded", def, _MAX_EXT-1, "oops"); sprintf (buf, "%s.%.*s loaded", def, _MAX_EXT-1, "oops");
@ -1710,7 +1710,7 @@ void S9xApplyCommand(s9xcommand_t cmd, int16 data1, int16 data2){
S9xMessage (S9X_ERROR, S9X_FREEZE_FILE_NOT_FOUND, S9xMessage (S9X_ERROR, S9X_FREEZE_FILE_NOT_FOUND,
"Oops file not found"); "Oops file not found");
} }
#endif #endif
} }
break; break;
/* case Mode7Interpolate: /* case Mode7Interpolate:
@ -1738,7 +1738,7 @@ void S9xApplyCommand(s9xcommand_t cmd, int16 data1, int16 data2){
S9xGetDirectory (SNAPSHOT_DIR), SLASH_STR, def, S9xGetDirectory (SNAPSHOT_DIR), SLASH_STR, def,
i - QuickLoad000); i - QuickLoad000);
#ifndef NGC #ifndef NGC
if (S9xLoadSnapshot (filename)) if (S9xLoadSnapshot (filename))
{ {
sprintf (buf, "%s.%03d loaded", def, i - QuickLoad000); sprintf (buf, "%s.%03d loaded", def, i - QuickLoad000);
@ -1762,7 +1762,7 @@ void S9xApplyCommand(s9xcommand_t cmd, int16 data1, int16 data2){
S9xMessage (S9X_ERROR, S9X_FREEZE_FILE_NOT_FOUND, S9xMessage (S9X_ERROR, S9X_FREEZE_FILE_NOT_FOUND,
"Freeze file not found"); "Freeze file not found");
} }
#endif #endif
} }
break; break;
case QuickSave000: case QuickSave001: case QuickSave002: case QuickSave003: case QuickSave004: case QuickSave005: case QuickSave006: case QuickSave007: case QuickSave008: case QuickSave009: case QuickSave010: case QuickSave000: case QuickSave001: case QuickSave002: case QuickSave003: case QuickSave004: case QuickSave005: case QuickSave006: case QuickSave007: case QuickSave008: case QuickSave009: case QuickSave010:
@ -1779,7 +1779,7 @@ void S9xApplyCommand(s9xcommand_t cmd, int16 data1, int16 data2){
i - QuickSave000); i - QuickSave000);
sprintf (buf, "%s.%03d saved", def, i - QuickSave000); sprintf (buf, "%s.%03d saved", def, i - QuickSave000);
S9xSetInfoString (buf); S9xSetInfoString (buf);
#ifndef NGC #ifndef NGC
Snapshot(filename); Snapshot(filename);
#endif #endif
@ -1798,7 +1798,7 @@ void S9xApplyCommand(s9xcommand_t cmd, int16 data1, int16 data2){
_makepath (filename, drive, S9xGetDirectory (SPC_DIR), _makepath (filename, drive, S9xGetDirectory (SPC_DIR),
def, ext); def, ext);
#ifndef NGC #ifndef NGC
if (S9xSPCDump (filename)) if (S9xSPCDump (filename))
sprintf (buf, "%s.%s saved", def, ext); sprintf (buf, "%s.%s saved", def, ext);
else else
@ -1860,7 +1860,7 @@ void S9xApplyCommand(s9xcommand_t cmd, int16 data1, int16 data2){
break; break;
case BeginRecordingMovie: case BeginRecordingMovie:
#ifndef NGC #ifndef NGC
if(S9xMovieActive()) S9xMovieStop(FALSE); if(S9xMovieActive()) S9xMovieStop(FALSE);
S9xMovieCreate(S9xChooseMovieFilename(FALSE), S9xMovieCreate(S9xChooseMovieFilename(FALSE),
@ -1868,20 +1868,20 @@ void S9xApplyCommand(s9xcommand_t cmd, int16 data1, int16 data2){
//MOVIE_OPT_FROM_SNAPSHOT //MOVIE_OPT_FROM_SNAPSHOT
MOVIE_OPT_FROM_RESET, MOVIE_OPT_FROM_RESET,
NULL, 0); NULL, 0);
#endif #endif
break; break;
case LoadMovie: case LoadMovie:
#ifndef NGC #ifndef NGC
if(S9xMovieActive()) S9xMovieStop(FALSE); if(S9xMovieActive()) S9xMovieStop(FALSE);
S9xMovieOpen(S9xChooseMovieFilename(TRUE), FALSE); S9xMovieOpen(S9xChooseMovieFilename(TRUE), FALSE);
#endif #endif
break; break;
case EndRecordingMovie: case EndRecordingMovie:
#ifndef NGC #ifndef NGC
if(S9xMovieActive()) S9xMovieStop(FALSE); if(S9xMovieActive()) S9xMovieStop(FALSE);
#endif #endif
break; break;
case SwapJoypads: case SwapJoypads: