Commit Graph

13 Commits

Author SHA1 Message Date
Louis Gombert
19762b9282 Merge pull request #695 from tophyr/pr/fix-mouselook
Fix mouselook
2025-05-08 20:12:29 +02:00
Chris Sarbora
e28d6bc2cf Clean up mouselook entry logic 2025-04-13 00:10:12 -05:00
Chris Sarbora
67488932e3 Fix non-mouselook AND mouselook by not over-adjusting sensitivity and making up for it with a high rotation 2025-04-13 00:09:40 -05:00
Chris Sarbora
5b18e22e18 Fix mouselook
Likely with the change to SDL's 'captured mouse' mode, mouse movements
during fullscreen became deltas *from the last movement*, not from
the last sampled position or frame. In order to correctly measure the
mouse movement, the deltas must be summed up and then reset when 'read'
at input-processing time.

Moving to summing the deltas threw many other mouse-related calibration
factors out of whack, so these factors are re-determined empirically
across a range of mice, from 400dpi 125hz to 30,000dpi 8khz. Reasonable
defaults are chosen targeting an 'average' mouse of 1000dpi, and the
mouse sensitivity precision is increased to allow finer user tuning.
2025-04-12 01:57:43 -05:00
Jan Engelhardt
401901c4f7 Replace sizeof/sizeof by std::size 2025-03-07 19:52:32 +01:00
Louis Gombert
b642ef5651 Rename SDL_FLT_EPSILON 2025-02-17 22:36:30 +01:00
Chris Sarbora
62ac1f4eb6 fill in x and y only if axes are valid 2024-12-31 11:44:40 -06:00
Jan Engelhardt
c9bf214ede d3: delete empty function bodies 2024-11-03 23:39:38 +01:00
Louis Gombert
7ca92bd1bd Merge pull request #614 from winterheart/ddebug-update
ddebug submodule update
2024-10-05 17:21:19 +02:00
Jason Yundt
f5d2a43863 Add -aditionaldir option
Before this change, Descent 3 would look for all of its game data files
in a single directory. This change allows users to spread out Descent
3’s game data over multiple directories.

Building Descent 3 produces multiple files that can be freely
redistributed (Descent3, d3-linux.hog, online/Direct TCP~IP.d3c, etc.).
Running Descent 3 requires those files and several additional files that
cannot be freely redistributed. Before this change, the files that were
redistributable had to be in the same directory as the files that were
not redistributable. This change makes it so that they can be in
separate directories.

The main motivation behind this change is to allow people to package
Descent 3 for Linux in a reasonable manner. For the most part, binary
packages for Descent 3 will contain all of the freely redistributable
components. Package managers will copy those components into system
directories that are owned by root and that users probably shouldn’t
edit manually. Users will then create a new directory and copy the game
data from their copy of Descent 3 into that new directory. Users will
then be able to run:

  Descent3 -setdir <path-to-proprietary-files> -additionaldir <path-to-open-source-files>

The -additionaldir option can also be used to support more complicated
scenarios. For example, if the user is using Debian’s
game-data-packager [1], then they would do something like this:

  Descent3 -setdir <path-to-writable-directory> -additionaldir <path-to-gdp-directory> -additionaldir <path-to-open-source-files>

The -additionaldir option can also be used to load a mod that replaces
.hog files:

  Descent3 -setdir <path-to-base-game-data> -additionaldir <path-to-mod-files>

[1]: <https://github.com/DescentDevelopers/Descent3/issues/373#issuecomment-2120330650>
2024-09-29 14:07:53 -04:00
Azamat H. Hackimov
c3b1225c6e Remove mprintf_at() usage
This function is stubbed and does nothing.
2024-09-24 23:00:53 +03:00
Louis Gombert
8f63c0ded6 Remove unimplemented '-rjoy' option
The '-rjoy' option would be used to connect to a remote controller, but was not implemented in the SDL or DX version
2024-09-18 22:32:56 +02:00
Louis Gombert
387ef339f4 Rename lnxcontroller to sdlcontroller 2024-09-18 22:32:09 +02:00