Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-04-07 | Fix variable declaration for C89 compilers | Zack Middleton | |
2016-04-07 | Check SDL_GetNumDisplayModes return value for errors | Tim Angus | |
2016-04-07 | Remove erroneous new line from error message | Zack Middleton | |
2016-04-07 | Don't crash if more than 128 modes are available | Simon McVittie | |
2015-06-08 | fix initialization based on r_width and r_height | /dev/humancontroller | |
let the cvars default to "0"; upon video startup, if any of these are non-positive, try to pick up the desktop's resolution, and update the cvars | |||
2015-06-07 | Horizontal scroll should not cause K_MWHEELDOWN key press | Zack Middleton | |
2015-03-17 | Don't run vid_restart when "resized" to current size | Zack Middleton | |
2015-03-17 | Move Event processor call down below the mouse checks. | Ensiform | |
Only send mouse events if both values are non-zero. Hopefully this helps with the event overflow spam that can sometimes happen on loads or laggy situations. | |||
2015-03-17 | Fix reading 4 byte UTF-8 text input | Zack Middleton | |
2015-03-17 | Clear window buffer when it's created | Zack Middleton | |
When starting the game in windowed mode, the window buffer used whatever was on the screen before running the game. Kind of like you could see through the window, but it doesn't update what happens behind it. It makes it look like something is broken or non-responsive. So clear the window opengl buffer to black. Credit to theinvsblman for the code. | |||
2015-03-17 | Don't add duplicate resolutions to r_availableModes | Zack Middleton | |
SDL can give the same resolution with different refresh rates. The refresh rate isn't used, so only add resolution to mode list once. | |||
2015-03-17 | Fix Windows key bind name on non-Mac using SDL2 | Zack Middleton | |
SDL 1.2 sends SDKL_*META (command) and SDLK_*SUPER (windows key). SDL2 sends SDLK_*GUI for both. | |||
2015-03-17 | Fix binding 'context menu' key using SDL2 | Zack Middleton | |
SDL 1.2 converted Windows' VK_APPS and X11 XK_Hyper_R to SDLK_MENU. SDL2 has it as a separate SDLK_APPLICATION key, so convert it to K_MENU too. | |||
2015-03-17 | SDL 2 scroll/caps/num lock keys send KEYUP event when key is released | Zack Middleton | |
2014-08-28 | Fix binding KP_NUMLOCK | Zack Middleton | |
Restore mapping SDL numlock to quake3 numlock. | |||
2014-08-28 | Remove unused cvar in_joystickDebug | Zack Middleton | |
2014-08-28 | Remove unused array joy_pressed | Zack Middleton | |
2014-08-28 | Disable key repeat if key catcher is 0 | Zack 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-28 | Fix ctrl-c etc codes for edit fields | Zack Middleton | |
2014-08-28 | Fix multisampling on X11 | Zack 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-28 | Don't crash when fail to create SDL window | Zack Middleton | |
2014-08-28 | Readd backspace char event for UI VM text fields | Zack 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-28 | Use bundle icon on Mac OS X instead of internal 32x32 window icon | Zack Middleton | |
2014-08-28 | Fix warning that SDL_GetKeyboardState return value is used non-const | Zack Middleton | |
2014-08-28 | Fix SDL2 losing event subsystem | Zack 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-28 | Send key up events for the mouse wheel | cmf028 | |
Previous versions of SDL would send SDL_MOUSEBUTTONUP events for the mouse wheel immediately following the corresponding SDL_MOUSEBUTTONDOWN event | |||
2014-08-28 | Set com_minimized to 0 when the window is restored | cmf028 | |
2014-08-28 | Don't set the window title twice | cmf028 | |
2014-08-28 | Various fixes from Fuma | Tim Angus | |
2014-08-28 | Fix initial window position being top left | Tim Angus | |
2014-08-28 | Improve console key situation | Tim Angus | |
2014-08-28 | Fix wacky patch for r_ignorehwgamma | Tim Angus | |
2014-08-28 | Convert SDL text input to UTF-32 | Tim Angus | |
2014-08-28 | Allow hardware gamma, in theory | Tim Angus | |
2014-08-28 | Make the mousewheel work | Tim Angus | |
2014-08-28 | Use SDL 2 instead of SDL 1.2 | Tim Angus | |
2014-06-17 | Add latch to r_centerWindow and r_allowResize | Zack Middleton | |
2014-06-17 | Fix text getting appended to vid_restart in command buffer | Zack Middleton | |
I was getting unknown command "vid_restart-button2" warning on OSX when trying to use alt-return to toggle fullscreen. | |||
2014-06-17 | SDL Mouse Button clean up | Zack 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-16 | Update copyright notices | Tim Angus | |
2013-02-16 | Add renderercommon/tr_common.h | Tim Angus | |
2013-02-16 | renderer -> renderergl1, rend2 -> renderergl2 | Tim Angus | |
2013-02-16 | Remove the SMP renderer feature | Tim Angus | |
2013-01-15 | Ues cls.glconfig | Tim Angus | |
2013-01-12 | Don't include client.h in sdl_glimp.c as it is part of the external renderer ↵ | Zack Middleton | |
lib. | |||
2013-01-12 | r_ignorehwgamma 1 does not actually turn on software gamma (#5511) - patch ↵ | Thilo Schulz | |
by Serge Belyshev | |||
2013-01-12 | Removed 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-12 | Support up to 16 joystick axes, select which to use with j_*_axis cvars. | Zack Middleton | |
2013-01-10 | Changed 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). |