mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
You have entered the comedy area
This commit is contained in:
parent
6893db46a1
commit
68bd632bac
6 changed files with 16 additions and 0 deletions
|
|
@ -98,6 +98,8 @@ int SUBVERSION;
|
||||||
|
|
||||||
// platform independant focus loss
|
// platform independant focus loss
|
||||||
UINT8 window_notinfocus = false;
|
UINT8 window_notinfocus = false;
|
||||||
|
INT32 window_x;
|
||||||
|
INT32 window_y;
|
||||||
|
|
||||||
//
|
//
|
||||||
// DEMO LOOP
|
// DEMO LOOP
|
||||||
|
|
|
||||||
|
|
@ -146,6 +146,8 @@ extern boolean digital_disabled;
|
||||||
extern boolean menuactive; // Menu overlaid?
|
extern boolean menuactive; // Menu overlaid?
|
||||||
extern UINT8 paused; // Game paused?
|
extern UINT8 paused; // Game paused?
|
||||||
extern UINT8 window_notinfocus; // are we in focus? (backend independant -- handles auto pausing and display of "focus lost" message)
|
extern UINT8 window_notinfocus; // are we in focus? (backend independant -- handles auto pausing and display of "focus lost" message)
|
||||||
|
extern INT32 window_x;
|
||||||
|
extern INT32 window_y;
|
||||||
|
|
||||||
extern boolean nodrawers;
|
extern boolean nodrawers;
|
||||||
extern boolean noblit;
|
extern boolean noblit;
|
||||||
|
|
|
||||||
|
|
@ -342,4 +342,6 @@ const char *I_ClipboardPaste(void);
|
||||||
|
|
||||||
void I_RegisterSysCommands(void);
|
void I_RegisterSysCommands(void);
|
||||||
|
|
||||||
|
void I_CursedWindowMovement(int xd, int yd);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -632,6 +632,7 @@ void P_Ticker(boolean run)
|
||||||
quake.x = M_RandomRange(-ir,ir);
|
quake.x = M_RandomRange(-ir,ir);
|
||||||
quake.y = M_RandomRange(-ir,ir);
|
quake.y = M_RandomRange(-ir,ir);
|
||||||
quake.z = M_RandomRange(-ir,ir);
|
quake.z = M_RandomRange(-ir,ir);
|
||||||
|
I_CursedWindowMovement(FixedInt(quake.x), FixedInt(quake.y));
|
||||||
ir >>= 2;
|
ir >>= 2;
|
||||||
ir = M_RandomRange(-ir,ir);
|
ir = M_RandomRange(-ir,ir);
|
||||||
if (ir < 0)
|
if (ir < 0)
|
||||||
|
|
|
||||||
|
|
@ -836,6 +836,12 @@ INT32 I_GetKey (void)
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
I_CursedWindowMovement (int xd, int yd)
|
||||||
|
{
|
||||||
|
SDL_SetWindowPosition(window, window_x + xd, window_y + yd);
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// I_JoyScale
|
// I_JoyScale
|
||||||
//
|
//
|
||||||
|
|
|
||||||
|
|
@ -638,6 +638,9 @@ static void Impl_HandleWindowEvent(SDL_WindowEvent evt)
|
||||||
break;
|
break;
|
||||||
case SDL_WINDOWEVENT_MAXIMIZED:
|
case SDL_WINDOWEVENT_MAXIMIZED:
|
||||||
break;
|
break;
|
||||||
|
case SDL_WINDOWEVENT_MOVED:
|
||||||
|
window_x = evt.data1;
|
||||||
|
window_y = evt.data2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mousefocus && kbfocus)
|
if (mousefocus && kbfocus)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue