Commit Graph
45 Commits
Author SHA1 Message Date
fgsfds d75adeb0c8 port: per-player settings
NOTE: this will reset big parts of your config
2023-11-04 02:08:45 +01:00
fgsfds fbae610a3b port: rework config system a bit 2023-11-04 02:08:44 +01:00
fgsfds c040c17b49 port: fix whitespace 2023-11-01 16:35:48 +01:00
SilentException 83d22c3b70 Allow mouse input by default 2023-11-01 04:23:34 +01:00
fgsfds c8db5fa106 port: add keybind menu 2023-10-28 18:17:35 +02:00
fgsfds cea9527936 port: add controller axis settings
also make sliders look nicer and save some input settings on quit
2023-10-28 14:36:00 +02:00
fgsfds 015817f204 port: add extended options menu
as well as support for string literals in the menu system
2023-10-28 05:33:09 +02:00
fgsfds be689a0495 port: add forgotten DPAD_RIGHT setting 2023-10-22 15:29:36 +02:00
fgsfds f638d49693 port: fit the CK_ enum back into 32 bits 2023-10-22 14:45:58 +02:00
fgsfds d1817aaea6 port: cleanup; camspy and slayer respect invert pitch option
note: dual analog mode now only works if you set StickCButtons=0 in pd.ini
2023-10-22 14:38:44 +02:00
Catherine Reprobate 80d787caf9 Support for two-sticks, one controller
port: implements analog movement for pc controllers

port: Implement menu movement with the C stick

port: Implement analog leaning

port: Implement 1.2 + 1 analog zooming

port: pd input lib now handles 32 buttons

port: modern crouch implementation

port: implement analog slayer airbraking

port: xbla farsight strafing

Map crouch buttons

- map cycle crouch to L3
- sensible 1964-style crouch bindings
2023-10-17 18:28:18 -07:00
fgsfds 63b38e48ba port: actually use RumbleScale 2023-10-03 11:03:27 +02:00
fgsfds 9a7e9c9ee3 port: small fixes for previous commit 2023-09-30 14:05:53 +02:00
Catherine Reprobate 940ba8c4c0 fixup: Use the float abs function 2023-09-29 17:29:08 -07:00
Catherine Reprobate b0c6e79329 hack: cp inputMouseGetScaledDeltaAbsSens for ammenu 2023-09-28 23:00:07 -07:00
Catherine Reprobate 0d6a62ada0 Use XBox / PC Menu A/B semantics
Fixes #110
2023-09-02 13:28:21 -07:00
fgsfds b6a3aef345 port: add logging and some command line args
--log: logs messages to pd.log

--boot-stage N: sets initial stage number to N (MP stages will crash or hang if booted like this)

--no-sound: disable sound

--rom-file S: set ROM filename
2023-08-31 12:54:18 +02:00
fgsfds af1422a1de port: move CrosshairSway and FovY to the [Game] ini section
fov doesn't really belong in the video functions either
2023-08-30 12:31:27 +02:00
squiddingme 3f562c3009 Add config option to control crosshair/gun sway 2023-08-28 02:40:50 +08:00
fgsfds 89849bc805 port: read keybinds from config file 2023-08-27 17:26:57 +02:00
Catherine Reprobate 10844e7a52 fixup controller use buttons 2023-08-26 16:14:43 -07:00
Catherine Reprobate 077a091f7d fixup camspy bindings 2023-08-26 16:14:43 -07:00
Catherine Reprobate f88493870a Address multiple extended input nits
- Q for radial menu
- mapped remaining xbla buttons, but the menus follow switch controller handfeel
- based on @Phnod's switch-weapons PR: https://github.com/fgsfdsfgs/perfect_dark/pull/57
2023-08-26 16:14:43 -07:00
Catherine Reprobate 3f6f0b3f9c map sensible xbox inputs
xbox A is mapped to n64 B for using items
n64 A is unmapped for controller.

When radial / weapon switching is mapped way from n64 A n64 A can be
remapped as a cancel button .
Trigger will need to be used for the menus until
2023-08-26 16:14:43 -07:00
Phnod 5a0580005f Added scrollwheel weapon swapping 2023-08-26 16:14:43 -07:00
fgsfds 2670db7ca1 port: add rstick fields to OSContPad 2023-08-21 00:29:51 +02:00
fgsfds 2b6b205a78 port: min supported SDL version should now be 2.0.12 2023-08-20 21:25:06 +02:00
fgsfds bd5d613a24 port: whitespace cleanup 2023-08-20 15:42:40 +02:00
fgsfds d007550adb Merge branch 'port' into port 2023-08-20 15:30:19 +02:00
Catherine Reprobate 93679e62e8 tested with xbox one controller
map implemented buttons to xbla positions

map radial menu to middle the mouse button
2023-08-20 00:00:00 -07:00
fgsfds 67c4531771 port: add stick scale config setting; better (?) deadzone 2023-08-19 15:18:15 +02:00
fgsfds 41cdef055e port: allow keyboard to act as a separate controller
also add a way to fake controller connection status for testing
2023-08-19 12:13:23 +02:00
fgsfds 4e42e3ef82 port: mouse wheel binds; handle adding and removing controllers 2023-08-19 02:16:58 +02:00
Catherine Reprobate 781fbcddd4 fixup bindings:
F and G will switch modes and bringup the radial menu
2023-08-18 16:37:41 -07:00
fgsfds 554fde7a9d port: fix rumble 2023-08-18 15:34:13 +02:00
fgsfds a49bfd00a4 port: add mouse controls to eyespy and slayer 2023-08-18 14:47:08 +02:00
fgsfds b906f77b37 port: added rumble scale and support for 2 extra buttons
also fixed some warnings
2023-08-18 12:26:55 +02:00
fgsfds 0c01ab76cf port: add simple config file
includes an option to disable vsync and enable cpu-side frame limiter
2023-08-15 21:45:23 +02:00
fgsfds 51808cd1f8 port: fix a bunch of controller-related bugs
don't completely override kb+m input when a controller is connected (fixes #3)

handle controller disconnection

add adequate default controller binds

add deadzone
2023-08-13 23:18:24 +02:00
fgsfds 07adda3fa6 port: more reasonable mouse sensitivity
what the fuck was I trying to do here?
2023-08-11 00:03:37 +02:00
fgsfds ffb5ca4b5b port: begin implementing audio
mixer taken from sm64-port and modified to fit PD's naudio thing

MP3 playback not supported yet

audio buffering sucks
2023-08-06 15:51:07 +02:00
fgsfds e1b892e8b4 port: hack in mouselook 2023-08-05 03:13:56 +02:00
fgsfds d6ee4f49d2 port: flesh out the input system a bit 2023-08-04 01:11:50 +02:00
fgsfds 2331b0911d port: always report at least one controller connected 2023-07-30 21:25:01 +02:00
fgsfds da94644c38 port: make it link and load
nothing happens after loading though
2023-07-29 23:21:35 +02:00