Commit Graph

1080 Commits

Author SHA1 Message Date
svdijk 9bb2c0d702 in_sdl.c: rewrite TEXTINPUT handling a bit again.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1094 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-08 20:03:05 +00:00
svdijk ab973d9f14 in_sdl: Remove commented-out m_filter code and a misleading comment.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1093 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-08 18:57:55 +00:00
svdijk 7a3dfd61d7 Rename some (recently added) functions.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1092 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-08 18:30:17 +00:00
svdijk a44f3785d8 in_sdl.c: Workaround for broken SDL2 numlock state.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1091 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-07 06:15:16 +00:00
svdijk cc15bab45a in_sdl.c: Fix numpad translation with SDL 1.2.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1090 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-06 20:47:35 +00:00
svdijk cec23e9fa5 input: Some more tuning.
* in_sdl.c: Remove the over-zealous "no events for unknown keys" checks introduced in r1085. Events for unknown keys can be useful for "press any key" situations.
* keys.c: In input grab mode, update the "lastkey" member only for key down events.
* keys.c/console.c: Adapt input grab mode to properly support catching "any key" presses.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1089 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-06 06:09:42 +00:00
svdijk 4eee84a9fc in_sdl.c: Inline IN_IsNumpadKey().
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1088 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-05 21:02:25 +00:00
svdijk 2fcba99a63 keys.c: Allow SetBinding() to really clear a key, instead of binding it to the empty string.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1087 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-05 20:48:27 +00:00
svdijk c164408ebf input: Minor tuning.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1086 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-05 19:03:48 +00:00
svdijk 94733d49c6 input: Implement numpad translation in text input mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1085 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-05 18:21:58 +00:00
svdijk 56a675b2d9 Fix SDL2 fallback when no FSAA is available.
On my old laptop, when running "./quakespasm -fsaa 2", quakespasm would error out with a "Couldn't create window" message. Our "no FSAA available" fallback was applied at OpenGL context creation time, but according to the SDL2 wiki FSAA settings should be done before creation of the window (see https://wiki.libsdl.org/SDL_GLattr#multisample). Moved it there.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1084 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-05 17:06:35 +00:00
svdijk b24e750ad9 input: Remove unneeded key_repeats array, some input grab tuning.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1083 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-05 16:35:59 +00:00
svdijk 695eb2c60f menu: Add M_Quit_InputtingText() for consistency.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1082 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-05 15:32:45 +00:00
svdijk c3063373bc input: Fix SDL2 mouse wheel up/down behaviour.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1081 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-05 15:25:31 +00:00
ewasylishen b1fcc40cea gl_vidsdl.c: for OpenGL versions below 1.5, assume "-novbo" (attempting to avoid old, broken VBO implementations).
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1080 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-03 18:31:58 +00:00
svdijk 62fa0935d2 input: Minor addition to r1077.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1079 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-02 19:34:33 +00:00
svdijk 3f19003e4a input: Support for "plain" numpad keys in the menu/console (still todo: numpad translation).
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1078 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-02 19:21:52 +00:00
svdijk 85ce754978 input: More text input restructuring.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1077 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-02 19:00:42 +00:00
sezero 499e05d82d oslibs, codecs (macosx, windows): update mpg123.h from mainstream.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1076 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-02 06:00:13 +00:00
svdijk 5a86e8511d input: Some text input restructuring in preparation of numpad translation support.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1075 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-30 19:29:58 +00:00
svdijk 8c327e3ff2 Revert r1073.
I read that comment as "bindings for these keys won't execute when in the menu", but it should be read as "no new bindings can be made for these keys through the bindings sub-menu", which is actually correct.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1074 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-30 06:18:31 +00:00
svdijk a5d7c34645 keys.c: Correct a typo in a comment.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1073 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-29 18:33:20 +00:00
svdijk 020cdf139b keys.c: Remove shift interpretation.
This never really belonged in keys.c (should have been handled in the backend instead), but now that we have separated Key_Event()/Char_Event() this no longer serves any purpose at all.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1072 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-29 18:31:41 +00:00
sezero 424fdc18c7 README: minor edits.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1071 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-29 11:00:47 +00:00
ewasylishen 3ac4067158 Add note to changelog about r1069
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1070 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-28 23:44:42 +00:00
ewasylishen 71133d5a09 sv_main: Second part of fixing the MAX_ENT_LEAFS issue (after bumping MAX_ENT_LEAFS to 32 in r967).
If an entity is visilbe from MAX_ENT_LEAFS (32) or more leafs, don't try to vis-cull it, just send it to the client.
This should completely eliminate any flickering entities, no matter how many leafs they're visible from.

This could potentially increase packet sizes a bit.. but ent->num_leafs == 32 never happens in id1 epsiode 1, so it will not cause any increase on those maps.
hip1m1 has one entity (a rotator) that is caught by this change and will be always sent.

see e.g.
http://forums.inside3d.com/viewtopic.php?f=1&t=5554
http://www.celephais.net/board/view_thread.php?id=60452&start=1235

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1069 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-28 19:02:27 +00:00
sezero 15c41d6262 oslibs (macosx, windows): recompile libFLAC with malformed
vorbiscomment handling improvements from git and with a fix
for windows vsnprintf().


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1068 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-27 07:56:04 +00:00
svdijk 4c3ab3a772 Interpunction nitpicking.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1067 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-23 19:11:39 +00:00
svdijk f4600f12fa input: Rework the text/non-text input mode handling.
Before, "gamekey" was the special case, now "textmode" is. We are now more precise about when we activate "textmode", e.g. we only do this when the console, messagemode, or a textfield in the menu are active. The trigger for doing this was this line on the "SDL_StartTextInput" page of the SDL2 wiki: "On some platforms using this function activates the screen keyboard.". Although we currenly support no such platform, it's good te be prepared, and what we do now is more correct anyway.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1066 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-23 19:10:02 +00:00
sezero 1a0de172a2 slightly revise the game command known bug infos.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1065 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-23 09:28:22 +00:00
svdijk 225223ec06 Rename some functions for consistency.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1064 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-23 02:19:57 +00:00
svdijk 1951afb09c in_sdl.c: rewrite TEXTINPUT handling a bit.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1063 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-23 02:15:46 +00:00
ewasylishen 82303ddd7e Add note about limitations of the 'game' command to the readme files
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1062 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-22 21:05:36 +00:00
sezero 77f010d4d3 rediff the extra fs_search_order.patch so it applies cleanly.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1061 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-22 09:40:25 +00:00
sezero c9614c505c rediff the extra quake_retexturing_project.patch so it applies cleanly.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1060 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-22 09:37:23 +00:00
sezero f45d7b7182 copyright years, general tidy-up, remove unused d_ifacea.h.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1059 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-22 08:55:46 +00:00
sezero 81f3aef1f1 allow KP_ENTER to function as K_ENTER in menus, console, etc., after r1042.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1058 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-22 06:21:06 +00:00
sezero b0b3b6fab6 revert exec'ing default.cfg and config.cfg upon in-game gamedir changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1057 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-22 06:15:23 +00:00
ewasylishen 9ed4c5fd0e Correct the buttonremap table for SDL2 so K_MOUSE4/K_MOUSE5 work.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1056 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-22 03:32:19 +00:00
ewasylishen 0555bd692e Xcode project: created "QuakeSpasmSDL2" target. It expects a copy of SDL2.framework to be in /Library/Frameworks
changes from "QuakeSpasm" target:
- remove double quotes around LIBRARY_SEARCH_PATHS values, this breaks linking on my OS X 10.6/Xcode 3.2.6 system
- drop ppc support
- add USE_SDL2 define
- bump minimum sdk deployment target to 10.5 as required by SDL2

Tested on OS X 10.6.8/Xcode 3.2.6, and OSX 10.9.4/Xcode 5.1.1.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1055 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-21 21:22:35 +00:00
sezero e1cd313574 rename gnu.txt to LICENSE.txt
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1054 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-21 14:02:30 +00:00
sezero 3f4f366dc9 add code for USE_GAMMA_RAMPS case for SDL2 builds. (still off by default.)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1053 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-21 14:00:56 +00:00
sezero 04ec6efeb3 exec default.cfg and config.cfg upon in-game gamedir changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1052 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-21 11:10:22 +00:00
sezero 696214e82e cleanup USE_GAMMA_RAMPS and USE_SDL2 stuff
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1051 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-21 11:01:02 +00:00
svdijk 4d7387a92a gl_vidsdl.c: Correct some swap interval related messages.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1050 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-21 07:52:22 +00:00
ewasylishen 9afd65ffbb add a note about high-dpi displays on Windows to the readme.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1049 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-21 03:03:16 +00:00
ewasylishen d899666d1c revert r1045 (SetProcessDPIAware).. while it fixed broken fullscreen on one configuration (sdl2/windows 8), it broke another that worked (sdl2/windows 8.1).
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1048 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-21 02:28:50 +00:00
svdijk a7f9e3988b Minor cleanups.
in_keys.c: Key_ConsoleBindable: remove redundant check, this is now handled by Key_KeynumToString/Key_StringToKeynum.
in_sdl.c: IN_SendKeyEvents: use a single method for checking whether we have a keydown or keyup event.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1047 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-21 02:10:14 +00:00
svdijk 0472529285 keys.c: Key_ConsoleBindable: add a better check for "general bindability".
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1046 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-21 01:59:36 +00:00
ewasylishen da5de52f1f sys_sdl_win.c: Call SetProcessDPIAware if available (Vista and above) to opt out of the OS scaling our window on a high-dpi display.
SDL (both 1.x and 2.x) is buggy and can't deal with scaled windows.
But we'd probably want to call this anyway beause it give us full-resolution windows.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1045 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-21 00:59:24 +00:00