2018-04-17 02:53:01 +02:00
|
|
|
/*
|
2018-10-21 23:28:24 +02:00
|
|
|
events.h - SDL backend internal header
|
|
|
|
Copyright (C) 2015-2018 a1batross
|
2018-04-17 02:53:01 +02:00
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#ifndef KEYWRAPPER_H
|
|
|
|
#define KEYWRAPPER_H
|
2018-10-21 23:28:24 +02:00
|
|
|
#ifdef XASH_SDL
|
2018-04-17 02:53:01 +02:00
|
|
|
|
2018-10-21 23:28:24 +02:00
|
|
|
#include "platform/platform.h"
|
|
|
|
|
|
|
|
// window management
|
|
|
|
void VID_RestoreScreenResolution( void );
|
2023-10-10 13:11:28 +02:00
|
|
|
qboolean VID_CreateWindow( int width, int height, window_mode_t window_mode );
|
2018-10-21 23:28:24 +02:00
|
|
|
void VID_DestroyWindow( void );
|
|
|
|
void GL_InitExtensions( void );
|
|
|
|
qboolean GL_DeleteContext( void );
|
2023-10-09 04:26:17 +02:00
|
|
|
void VID_SaveWindowSize( int width, int height, qboolean maximized );
|
2018-04-17 02:53:01 +02:00
|
|
|
|
2021-03-01 19:48:31 +01:00
|
|
|
// joystick events
|
|
|
|
extern SDL_Joystick *g_joy;
|
|
|
|
|
2022-05-30 02:33:03 +02:00
|
|
|
//
|
|
|
|
// in_sdl.c
|
|
|
|
//
|
|
|
|
void SDLash_InitCursors( void );
|
|
|
|
void SDLash_FreeCursors( void );
|
|
|
|
|
2018-04-17 02:53:01 +02:00
|
|
|
#endif // XASH_SDL
|
|
|
|
#endif // KEYWRAPPER_H
|