*/
void IN_Move (usercmd_t *cmd)
{
- if (ActiveApp && !Minimized)
+ if (vid_activewindow && !vid_hidden)
{
IN_MouseMove (cmd);
IN_JoyMove (cmd);
#define NOT_FOCUS_SLEEP 20
int starttime;
-qboolean ActiveApp, Minimized;
static qboolean sc_return_on_enter = false;
HANDLE hinput, houtput;
if (cls.state != ca_dedicated)
{
// yield the CPU for a little while when paused, minimized, or not the focus
- if ((cl.paused && !ActiveApp) || Minimized)
+ if ((cl.paused && !vid_activewindow) || vid_hidden)
{
SleepUntilInput (PAUSE_SLEEP);
scr_skipupdate = 1; // no point in bothering to draw
}
- else if (!ActiveApp)
+ else if (!vid_activewindow)
SleepUntilInput (NOT_FOCUS_SLEEP);
}
static BOOL sound_active;
vid_activewindow = fActive;
- Minimized = minimize;
+ vid_hidden = minimize;
// enable/disable sound on focus gain/loss
if (!vid_activewindow && sound_active)
extern modestate_t modestate;
extern HWND mainwindow;
-extern qboolean ActiveApp, Minimized;
void IN_ShowMouse (void);
void IN_DeactivateMouse (void);