Added reporting of the QVSS window focus release key when Video Windows is created
This commit is contained in:
parent
baba5f8c08
commit
a7a8f3d905
5 changed files with 65 additions and 30 deletions
10
VAX/vax_vc.c
10
VAX/vax_vc.c
|
@ -184,6 +184,8 @@ MTAB vc_mod[] = {
|
||||||
&vc_set_enable, NULL, NULL, "Enable VCB01 (QVSS)" },
|
&vc_set_enable, NULL, NULL, "Enable VCB01 (QVSS)" },
|
||||||
{ MTAB_XTD|MTAB_VDV, 0, NULL, "DISABLE",
|
{ MTAB_XTD|MTAB_VDV, 0, NULL, "DISABLE",
|
||||||
&vc_set_enable, NULL, NULL, "Disable VCB01 (QVSS)" },
|
&vc_set_enable, NULL, NULL, "Disable VCB01 (QVSS)" },
|
||||||
|
{ MTAB_XTD|MTAB_VDV, 0, "RELEASEKEY", NULL,
|
||||||
|
NULL, &vid_show_release_key, NULL, "Display the window focus release key" },
|
||||||
{ MTAB_XTD|MTAB_VDV|MTAB_VALR, 004, "ADDRESS", "ADDRESS",
|
{ MTAB_XTD|MTAB_VDV|MTAB_VALR, 004, "ADDRESS", "ADDRESS",
|
||||||
&set_addr, &show_addr, NULL, "Bus address" },
|
&set_addr, &show_addr, NULL, "Bus address" },
|
||||||
{ MTAB_XTD|MTAB_VDV|MTAB_VALR, 0, "VECTOR", "VECTOR",
|
{ MTAB_XTD|MTAB_VDV|MTAB_VALR, 0, "VECTOR", "VECTOR",
|
||||||
|
@ -629,6 +631,14 @@ if (dptr->flags & DEV_DIS)
|
||||||
r = vid_open (VC_XSIZE, VC_YSIZE); /* display size */
|
r = vid_open (VC_XSIZE, VC_YSIZE); /* display size */
|
||||||
if (r != SCPE_OK)
|
if (r != SCPE_OK)
|
||||||
return r;
|
return r;
|
||||||
|
printf ("QVSS Display Created. ");
|
||||||
|
vid_show_release_key (stdout, NULL, 0, NULL);
|
||||||
|
printf ("\n");
|
||||||
|
if (sim_log) {
|
||||||
|
fprintf (sim_log, "QVSS Display Created. ");
|
||||||
|
vid_show_release_key (sim_log, NULL, 0, NULL);
|
||||||
|
fprintf (sim_log, "\n");
|
||||||
|
}
|
||||||
sim_activate_abs (&vc_unit, tmxr_poll);
|
sim_activate_abs (&vc_unit, tmxr_poll);
|
||||||
return auto_config (NULL, 0); /* run autoconfig */
|
return auto_config (NULL, 0); /* run autoconfig */
|
||||||
}
|
}
|
||||||
|
|
23
sim_video.c
23
sim_video.c
|
@ -730,6 +730,17 @@ sprintf(SDLVersion, "SDL Version %d.%d.%d", ver->major, ver->minor, ver->patch);
|
||||||
return (const char *)SDLVersion;
|
return (const char *)SDLVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
t_stat vid_set_release_key (FILE* st, UNIT* uptr, int32 val, void* desc)
|
||||||
|
{
|
||||||
|
return SCPE_NOFNC;
|
||||||
|
}
|
||||||
|
|
||||||
|
t_stat vid_show_release_key (FILE* st, UNIT* uptr, int32 val, void* desc)
|
||||||
|
{
|
||||||
|
fprintf (st, "ReleaseKey=Ctrl-Right-Shift");
|
||||||
|
return SCPE_OK;
|
||||||
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
/* Non-implemented versions */
|
/* Non-implemented versions */
|
||||||
|
@ -769,4 +780,16 @@ const char *vid_version (void)
|
||||||
return "No Video Support";
|
return "No Video Support";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
t_stat vid_set_release_key (FILE* st, UNIT* uptr, int32 val, void* desc)
|
||||||
|
{
|
||||||
|
return SCPE_NOFNC;
|
||||||
|
}
|
||||||
|
|
||||||
|
t_stat vid_show_release_key (FILE* st, UNIT* uptr, int32 val, void* desc)
|
||||||
|
{
|
||||||
|
fprintf (st, "no release key");
|
||||||
|
return SCPE_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -175,5 +175,7 @@ t_stat vid_poll_mouse (SIM_MOUSE_EVENT *ev);
|
||||||
void vid_draw (int32 x, int32 y, int32 w, int32 h, uint8 *buf);
|
void vid_draw (int32 x, int32 y, int32 w, int32 h, uint8 *buf);
|
||||||
void vid_refresh (void);
|
void vid_refresh (void);
|
||||||
const char *vid_version (void);
|
const char *vid_version (void);
|
||||||
|
t_stat vid_set_release_key (FILE* st, UNIT* uptr, int32 val, void* desc);
|
||||||
|
t_stat vid_show_release_key (FILE* st, UNIT* uptr, int32 val, void* desc);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue