Commit graph

1309 commits

Author SHA1 Message Date
Eric Wasylishen
528493907f vid_borderless 2016-02-16 23:40:06 -07:00
Eric Wasylishen
0e06798db3 adding joy key repeat func 2016-02-15 02:32:05 -07:00
Eric Wasylishen
68cb97c864 more tidying.. apply deadzone before swapping move/look 2016-02-13 15:14:04 -07:00
Eric Wasylishen
bc447db0b0 tidy indentation 2016-02-13 13:21:07 -07:00
Eric Wasylishen
36bb9f835b add comment on menu canvas change 2016-02-13 13:10:11 -07:00
Eric Wasylishen
55080e0e11 Video menu: support x360 keys 2016-02-13 00:37:55 -07:00
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