summaryrefslogtreecommitdiff
path: root/src/sdl
AgeCommit message (Collapse)Author
2014-08-28Disable key repeat if key catcher is 0Zack Middleton
SDL1.2 branch disables key repeat when key catcher is 0. Presumably to prevent binds from executing multiple times. SDL2 replaced being able to disabled key repeat using SDL_EnableKeyRepeat with a non-zero repeat value in the key event.
2014-08-28Fix ctrl-c etc codes for edit fieldsZack Middleton
2014-08-28Fix multisampling on X11Zack Middleton
Setting SDL_GL_ACCELERATED_VISUAL was disabled for ioq3 SDL 1.2 for other reasons. However, it causes creating GL context to fail if multisampling is enabled on X11 for both SDL1.2 and SDL2. Tested using nVidia proprietary driver on Debian 7.
2014-08-28Don't crash when fail to create SDL windowZack Middleton
2014-08-28Readd backspace char event for UI VM text fieldsZack Middleton
UI VMs expect a backspace char event, but sdl2 branch only was only sending a key event. Revert cl_keys.c to master branch (it would cause backspace to happen twice in console).
2014-08-28Use bundle icon on Mac OS X instead of internal 32x32 window iconZack Middleton
2014-08-28Fix warning that SDL_GetKeyboardState return value is used non-constZack Middleton
2014-08-28Fix SDL2 losing event subsystemZack Middleton
Quiting SDL Video or Joystick subsystem implies quiting the Event subsystem in SDL2. SDL keeps track of number of init and shutdown calls for each subsystem. Shuting down video or joystick more or equal to number of times they're inited will lead to event shutdown. Toggling in and out of fullscreen or running in_restart twice causes SDL event subsystem to shutdown, making input not work. If the console is closed, IN_GobbleMotionEvents gets stuck in a loop. SDL_PeepEvents returns -1 when there is an error, but we assume non-0 means read more events. IN_ShutdownJoystick needs to check if joystick subsystem was inited before quitting it, otherwise we may cause SDL event subsystem to shutdown.
2014-08-28Send key up events for the mouse wheelcmf028
Previous versions of SDL would send SDL_MOUSEBUTTONUP events for the mouse wheel immediately following the corresponding SDL_MOUSEBUTTONDOWN event
2014-08-28Set com_minimized to 0 when the window is restoredcmf028
2014-08-28Don't set the window title twicecmf028
2014-08-28Various fixes from FumaTim Angus
2014-08-28Fix initial window position being top leftTim Angus
2014-08-28Improve console key situationTim Angus
2014-08-28Fix wacky patch for r_ignorehwgammaTim Angus
2014-08-28Convert SDL text input to UTF-32Tim Angus
2014-08-28Allow hardware gamma, in theoryTim Angus
2014-08-28Make the mousewheel workTim Angus
2014-08-28Use SDL 2 instead of SDL 1.2Tim Angus
2014-06-17Add latch to r_centerWindow and r_allowResizeZack Middleton
2014-06-17Fix text getting appended to vid_restart in command bufferZack Middleton
I was getting unknown command "vid_restart-button2" warning on OSX when trying to use alt-return to toggle fullscreen.
2014-06-17SDL Mouse Button clean upZack Middleton
Make 'b' variable an int so that key values more than 255 will work (not currently an issue in ioq3 afaik). Use SDL_BUTTON_* for easier transition to SDL2. (SDL2 doesn't have SDL_BUTTON_WHEELUP or SDL_BUTTON_WHEELDOWN, X1/X2 are different values.)
2013-02-16Update copyright noticesTim Angus
2013-02-16Add renderercommon/tr_common.hTim Angus
2013-02-16renderer -> renderergl1, rend2 -> renderergl2Tim Angus
2013-02-16Remove the SMP renderer featureTim Angus
2013-01-15Ues cls.glconfigTim Angus
2013-01-12Don't include client.h in sdl_glimp.c as it is part of the external renderer ↵Zack Middleton
lib.
2013-01-12r_ignorehwgamma 1 does not actually turn on software gamma (#5511) - patch ↵Thilo Schulz
by Serge Belyshev
2013-01-12Removed unnessicary "!!".Zack Middleton
2013-01-12#5484 - Remove unneeded tr_local.h include from sdl_input.c. Patch by Harley ↵Zack Middleton
Laue.
2013-01-12Support up to 16 joystick axes, select which to use with j_*_axis cvars.Zack Middleton
2013-01-10Changed the joystick axis to key remap to start at K_JOY17 (fits better with ↵Zack Middleton
hat_keys and K_JOY16 is used by button).
2013-01-10Don't grab mouse till UI loads.Zack Middleton
2013-01-10Change x86_64 to x64 for mingw.Zack Middleton
2013-01-10Modular rendering system. Patch by use.less01 This might break MSVC builds. ↵Thilo Schulz
I'll take care of it later
2013-01-10- Improve game_restart: * differing screen resolutions and network settings ↵Thilo Schulz
are now honoured when changing fs_game * Fix hunk memory leak on game_restart * Move cls.state and cls.servername to clc so connection state is fully preserved over game_restart * Revert back to previous fs_game after disconnecting from a server that triggered a game_restart * Fix error dialog popping up after every game_restart if an error happened previously (reported by Ensiform) - Fixed that not all commands added by CL_Init() would be removed by CL_Shutdown()
2013-01-09Remove newlines from Com_Error calls, patch by DevHCThilo Schulz
2013-01-09Remove newlines from Com_Error message format strings, patch by DevHCThilo Schulz
2013-01-03* Merge ioq3-r1946Tim Angus
2013-01-03* Merge ioq3-r1813Tim Angus
2013-01-03* Make cursor hiding more consistentTim Angus
2013-01-03* Update copyright noticesTim Angus
2013-01-03* Merge ioq3-r1752Tim Angus
2013-01-03* s/ITEM_TYPE_COMBO/ITEM_TYPE_CYCLE/Tim Angus
* Add ITEM_TYPE_COMBOBOX -- a proper combobox widget * Use ITEM_TYPE_COMBOBOX for video mode selection * General refactoring of the listbox code * Various other assorted tidy-ups
2013-01-03* Merge ioq3-r1708Tim Angus
2013-01-03* Merge ioq3-r1637Tim Angus
2013-01-03* Merge ioq3-r1498, by popular demandTim Angus
2013-01-03* Merge ioq3-r1464Tim Angus
* Use WM cursor when running windowed and UI module has input
2013-01-03* Merge ioq3-r1458Tim Angus