Commit graph

1303 commits

Author SHA1 Message Date
Eric Wasylishen
b9d22460c4 Keybinding: allow binding 3 keys 2016-02-13 00:35:46 -07:00
Eric Wasylishen
0627f031cf Hack menu viewport size 2016-02-13 00:35:23 -07:00
Eric Wasylishen
68d3f53dbf Merge branch 'master' into joy2 2016-02-13 00:12:17 -07:00
ewasylishen
eb1763585c Contrast support with a "contrast" cvar, behaving the same as MarkV's.
It may be a useful alternative to the existing gamma control for laptops in a bright environment, etc.
(raising contrast gives less of a gray/washed out look than raising gamma, but as a disadvantage, colours near white get clipped to white.)

It's also implemented for both GLSL and SDL gamma ramps, but only if USE_GAMMA_RAMPS is set to 1.
Since USE_GAMMA_RAMPS  is 0, currently it only works with GLSL.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1290 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-02-12 23:26:36 +00:00
Eric Wasylishen
87ace1016c undo formatting changes 2016-02-11 00:00:02 -07:00
Eric Wasylishen
06ef6723b1 reorganizing 2016-02-10 23:57:01 -07:00
Eric Wasylishen
51328a76a9 Rewrite IN_JoyMove 2016-02-09 22:19:59 -08:00
Eric Wasylishen
5e81772eba Split IN_Move into 2 functions 2016-02-09 21:18:19 -08:00
Eric Wasylishen
130bc7903d cleaning 2016-02-09 18:06:09 -07:00
Eric Wasylishen
0a563fdb38 Load controllers from txt file 2016-02-08 20:28:01 -07:00
Eric Wasylishen
c1a0b4f854 update qs pak 2016-02-08 18:13:31 -07:00
Eric Wasylishen
b53b78590c tidy 2016-02-08 17:22:55 -07:00
Eric Wasylishen
620d0e0fab swap move/look cvar 2016-02-08 16:29:11 -07:00
Eric Wasylishen
59ad64e28b Trimming joy support 2016-02-08 15:04:19 -07:00
Eric Wasylishen
6a27a05f82 menu: remove DPAD up/down/left/right 2016-02-08 15:02:40 -07:00
Eric Wasylishen
dfc605398e trimming 2016-02-08 14:57:24 -07:00
Eric Wasylishen
5c0ae3b4cd Trim out unused joy_ stuff 2016-02-08 14:30:13 -07:00
Eric Wasylishen
8024bac2ad more tweaks.
TODO: Autorepeat for stick emulated keys
2016-02-08 01:59:17 -07:00
Eric Wasylishen
ee3d330b32 adjust confirmation dialog hack 2016-02-08 01:54:49 -07:00
Eric Wasylishen
3faf16b104 hack key emulation 2016-02-08 01:51:44 -07:00
Eric Wasylishen
660f7d4077 stick emulate keys 2016-02-08 01:07:04 -07:00
Eric Wasylishen
b7fae1a4ee add virtual keys for sticks up/down/left/right from DP 2016-02-08 00:36:31 -07:00
Eric Wasylishen
d6e354b6ec Emulate some keyboard keys for menu control 2016-02-06 23:11:31 -08:00
Eric Wasylishen
ad9346cb19 Handle controller in SCR_ModalMessage 2016-02-03 20:48:56 -07:00
Eric Wasylishen
7826204729 - rewrite deadzone, use xinput values, independent deadzones for l/r/ trigger
- disable "scale look speed before easing"
- make joystick movement independent of frametime
2016-02-03 00:34:46 -07:00
Eric Wasylishen
e3d805d4e7 fix binding menu 2016-02-01 21:41:04 -07:00
Eric Wasylishen
05f60b2e33 fix joy movement speed being framerate dependent 2016-02-01 21:41:04 -07:00
Eric Wasylishen
2a3bef456b add custom keys 2016-02-01 21:41:04 -07:00
Eric Wasylishen
c84e3616dd game controller support 2016-02-01 21:41:04 -07:00
Eric Wasylishen
bd06857a5e tweak joystick a bit 2016-02-01 21:41:04 -07:00
Eric Wasylishen
8f252a7ff7 Joystick support from github.com/jeremiah-sypult/Quakespasm-Rift
Joy cvars made non-archived and tweaked for X360 controller
2016-02-01 21:41:04 -07:00
ewasylishen
88737f372d world.c: use DoublePrecisionDotProduct to fix items falling out of the world
on oms3.bsp on SSE builds.

Thanks to ParuBaru for reporting the issue.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1289 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-02-01 22:41:15 +00:00
sezero
d5297fb7aa docs: fixed version number in changelog. added empty 0.91.1 changelog section for new changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1288 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-01-31 09:33:26 +00:00
ewasylishen
39d78d026a Default gl_clear to 1, as described in "Common mistakes" https://www.opengl.org/wiki/Common_Mistakes#Swap_Buffers
"The buffers should always be cleared. On much older hardware, there was a technique to get away without clearing the scene, but on even semi-recent hardware, this will actually make things slower. So always do the clear."
Plus it's nice for map development / debugging.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1287 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-01-29 20:47:24 +00:00
ewasylishen
7f293e389b SV_SpawnServer: use malloc for sv.edicts, and only zero it as needed
Previously we were Hunk_Alloc'ing space for 8192 edicts (by default) which zeros all of that memory, this way we only use as much RAM as needed since the unuesd pages aren't dirtied

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1286 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-01-29 01:05:11 +00:00
ewasylishen
8b18c98720 Xcode project:
-adjust release builds to not require 10.6 SDK, and disable PPC since recent OSX SDK's don't support it
-don't strip symbols, to make testing in Instruments easier.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1285 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-01-29 00:31:27 +00:00
ewasylishen
3574d65077 GL_Init: log gl_vendor, gl_renderer, gl_version to the console.
Taken from RMQEngine. the idea is to ensure every -condebug log has the gfx driver version logged.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1284 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-01-28 06:07:07 +00:00
sezero
b75b073f65 bumped version to 0.91.1 for future development
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1283 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-01-18 07:28:03 +00:00
sezero
aba6d04d6d re-diff'ed extra patches under Misc/ so that they apply cleanly.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1281 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-01-16 19:28:04 +00:00
sezero
bb3268215a minor edit to readme.txt
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1280 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-01-15 09:37:09 +00:00
ewasylishen
2f9ca49658 Update docs with latest changes
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1279 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-01-15 09:18:21 +00:00
ewasylishen
6d060b864e max_edicts: raise to 8192 (from 2048) and make non-archived, to reduce the need for players to mess with it to get maps/mods to run.
Some measurements on the size of the sv.edicts hunk allocation, with this change, on various mods (it depends on the number of QC entity fields):
id1 7MB, quoth 11 MB, arcadim 21 MB, rrp 9MB,  ne_ruins 16MB.

Since this is a Hunk_Alloc, the whole 10-20MB is cleared to zero which will allocate that much physical ram.
We could probably change it to a malloc later, and not clear the memory, so physical ram is only allocated when the memory is cleared in ED_Alloc.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1278 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-01-10 23:03:06 +00:00
sezero
c6fe16452b oslibs: rebuild libopusfile from latest v0.7 release.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1277 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-01-10 09:30:31 +00:00
ewasylishen
7044f89008 Raise default heapsize to 256MB and zone to 4MB (matching Fitz MarkV)
N.B.: I verified with the OS X Instruments tool that unused space in the heap isn't dirtied (e.g. we never memset the entire heap, only the portions returned by Hunk_Alloc) so this should have no impact on RAM required.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1276 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-01-09 20:29:22 +00:00
ewasylishen
98f45470d6 zone.c: fix padding in memblock_t struct to works as intended. the previous layout was probably harmless but wasted a few bytes.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1275 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-01-09 20:03:27 +00:00
ewasylishen
f6ea14fa76 TexMgr_RecalcWarpImageSize: removed early exit if (gl_warpimagesize == oldsize), fixes liquids sometimes turning to noise after a mode change.
after vid_restart TexMgr_ReloadImage reloads textures to tx->source_width/source_height, which might not match oldsize.
fixes: https://sourceforge.net/p/quakespasm/bugs/13/

steps to reproduce (fixed) bug:
-launch at 640x480, windowed, and with "r_oldwater 0"
-do "map start"
-change to 1024x768 windowed
-change to 1920x1080 windowed
-this last mode change makes liquid textures turn into random garbage.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1274 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-01-08 08:22:27 +00:00
sezero
a2714019ba rebuilt SDL2 from SDL2-2.04 release version.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1273 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-01-03 10:51:44 +00:00
ewasylishen
4c255fe1fc VID_Toggle: disable the fast path entirely because it was failing on SDL2/WinXP.
(640x480 fullscreen -> windowed would give a large 1280x768 window mostly filled with garbage).

Previously, we were only using the fast path on old systems (no VBO support) anyway.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1272 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-01-03 08:38:46 +00:00
ewasylishen
d9fb6e2632 Add Xcode project for debugging on Xcode 2.5 / OS X 10.4 / PPC
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1271 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-01-03 07:45:18 +00:00
sezero
fddc879665 SDL2 rebuild: forgot updating SDL_revision.h.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1270 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-12-28 10:15:04 +00:00