DWORD (WINAPI *qXInputGetState)(DWORD index, xinput_state_t *state);
DWORD (WINAPI *qXInputGetKeystroke)(DWORD index, DWORD reserved, xinput_keystroke_t *keystroke);
-qboolean vid_xinputinitialized = false;
+qbool vid_xinputinitialized = false;
int vid_xinputindex = -1;
#endif
viddef_t vid;
// AK FIXME -> input_dest
-qboolean in_client_mouse = true;
+qbool in_client_mouse = true;
// AK where should it be placed ?
float in_mouse_x, in_mouse_y;
float in_windowmouse_x, in_windowmouse_y;
// LadyHavoc: if window is hidden, don't update screen
-qboolean vid_hidden = true;
+qbool vid_hidden = true;
// LadyHavoc: if window is not the active window, don't hog as much CPU time,
// let go of the mouse, turn off sound, and restore system gamma ramps...
-qboolean vid_activewindow = true;
+qbool vid_activewindow = true;
vid_joystate_t vid_joystate;
};
#endif
-qboolean GL_CheckExtension(const char *name, const char *disableparm, int silent)
+qbool GL_CheckExtension(const char *name, const char *disableparm, int silent)
{
int failed = false;
const glfunction_t *func;
int j;
GLint numextensions = 0;
const glfunction_t *func;
- qboolean missingrequiredfuncs = false;
+ qbool missingrequiredfuncs = false;
static char missingfuncs[16384];
#ifndef USE_GLES2
return value * fsensitivity;
}
-qboolean VID_JoyBlockEmulatedKeys(int keycode)
+qbool VID_JoyBlockEmulatedKeys(int keycode)
{
int j;
vid_joystate_t joystate;
joystate->button[35] = r < 0.0f;
}
-static void VID_KeyEventForButton(qboolean oldbutton, qboolean newbutton, int key, double *timer)
+static void VID_KeyEventForButton(qbool oldbutton, qbool newbutton, int key, double *timer)
{
if (oldbutton)
{
}
unsigned int vid_gammatables_serial = 0; // so other subsystems can poll if gamma parameters have changed
-qboolean vid_gammatables_trivial = true;
+qbool vid_gammatables_trivial = true;
void VID_BuildGammaTables(unsigned short *ramps, int rampsize)
{
if (cachecolorenable)
{
cvar_t *c;
float f;
- qboolean gamma_changed = false;
+ qbool gamma_changed = false;
#define BOUNDCVAR(cvar, m1, m2) c = &(cvar);f = bound(m1, c->value, m2);if (c->value != f) Cvar_SetValueQuick(c, f);
BOUNDCVAR(v_gamma, 0.1, 5);
Key_ReleaseAll();
}
-qboolean vid_commandlinecheck = true;
-extern qboolean vid_opened;
+qbool vid_commandlinecheck = true;
+extern qbool vid_opened;
void VID_Restart_f(cmd_state_t *cmd)
{
return -1;
return 0;
}
-size_t VID_SortModes(vid_mode_t *modes, size_t count, qboolean usebpp, qboolean userefreshrate, qboolean useaspect)
+size_t VID_SortModes(vid_mode_t *modes, size_t count, qbool usebpp, qbool userefreshrate, qbool useaspect)
{
size_t i;
if(count == 0)