Commit graph

391 commits

Author SHA1 Message Date
SinnamonLat
6db54f77d8 Force menus to use default controls for now. Update device in realtime in control setup menu 2022-04-11 14:50:51 +02:00
toaster
55b0d5d07a Fix axes in M_MapProfileControl.
* Now properly converts ev->data1 to a control, instead of leaving it as an unfiltered axis number.
* Now checks it exceeds a deadzone (TODO: always p1's deadzone for now)

Still a lot of bugs in input support, but we're getting there.
2022-03-30 23:42:45 +01:00
toaster
4cc587b5b2 * Make the scrolling text on the menu interpolate.
* Replace the shitty vidwait option with Sal's shiny new fpscap option.
* Update the item toggles menu for all the new items (and re-enable shitsfree for the new empty spots).
2022-03-29 21:08:36 +01:00
toaster
73dabaeab6 Merge branch 'master' into new-menus
# Conflicts:
#	src/d_clisrv.c
#	src/deh_soc.c
#	src/lua_baselib.c
#	src/m_cheat.c
#	src/m_menu.h
#	src/y_inter.c
2022-03-29 17:14:38 +01:00
SinnamonLat
b3410f7eef Fix manual menu 2022-02-27 00:29:29 +01:00
SinnamonLat
1c0a849b6f Fix addons & replay hut menus 2022-02-27 00:24:19 +01:00
SinnamonLat
2696effe7a Make message boxes separate overlays 2022-02-27 00:15:31 +01:00
SinnamonLat
f5bd0dc3e4 Make typing submenu into a struct 2022-02-26 17:15:45 +01:00
SinnamonLat
ed5005cb05 Add kickstartaccel on profile controls 2022-02-26 15:09:39 +01:00
SinnamonLat
82bab536c7 Don't allow multiple profiles of the same name to exist 2022-02-26 13:37:23 +01:00
SinnamonLat
425160ceaf Don't allow editing guest profile 2022-02-26 11:05:19 +01:00
SinnamonLat
ca11e07f95 Fix the profile closing if you back out from the profile charsel 2022-02-26 10:56:16 +01:00
SinnamonLat
c750c17f37 fix softlock on profile character select 2022-02-26 10:52:50 +01:00
SinnamonLat
964d503988 Prevent profile player name from writing out of bounds 2022-02-26 10:45:27 +01:00
SinnamonLat
87dfa790cb Fix stupid potential softlock on control setup with device detection 2022-02-20 09:50:18 +01:00
SinnamonLat
94c18f535a Map 4 keys per button. Detect device when mapping 2022-02-20 09:40:36 +01:00
SinnamonLat
168f393a62 Remove softlock check as it's unecessary after all 2022-02-20 09:40:35 +01:00
James R
3504f7ebd3 Map buffered inputs to menucmd
This lets buffered tapping not count as one held input.
2022-02-19 16:30:23 -08:00
James R
68ed9982b6 Fix virtual keyboard left wrap 2022-02-19 16:12:12 -08:00
James R
6eaf350387 Process keyboard text inputs at responder 2022-02-19 16:08:35 -08:00
SinnamonLat
7612d7cdf9 CharSel: Make sure the clone we're hovering over actually exists 2022-02-19 22:15:56 +01:00
SinnamonLat
2789d1d90e Allow unbinding controls with C, prevent softlocks by having core keys unbound. (Also fix a silly bug introduced by a previous commit) 2022-02-19 22:10:37 +01:00
SinnamonLat
b9a494551e Don't display empty profiles on player setup 2022-02-19 21:49:08 +01:00
SinnamonLat
8920ec8e6a Disable profile setup outside of GS_MENU 2022-02-19 21:45:42 +01:00
SinnamonLat
33639d7a4c Change button mappings ingame. Put delay after remapping a button to avoid very silly things 2022-02-19 19:25:51 +01:00
SinnamonLat
2b74b7188f profiles: they work(?) now 2022-02-19 18:57:17 +01:00
SinnamonLat
3aadf1bff0 Allow creating new profiles 2022-02-19 16:08:50 +01:00
SinnamonLat
debc93ff5c Make sure to reset setup_player when backing out to not interfere with profile display 2022-02-19 13:43:21 +01:00
SinnamonLat
2e4a58095a Allow ev_joystick for button mappings, oops 2022-02-19 13:31:34 +01:00
SinnamonLat
ebc2156b7e Profiles: control setup (wip but does what it needs to for now) 2022-02-19 13:26:02 +01:00
SinnamonLat
5601fa4c22 profiles: character/colour select 2022-02-18 13:46:32 +01:00
SinnamonLat
0ac0efda70 Add typing menu overlay for controller parity 2022-02-17 15:05:22 +01:00
SinnamonLat
8efba24df7 profiles: start on edit menu (it does nothing) 2022-02-16 23:57:06 +01:00
SinnamonLat
c44300d39f Use mockup design for cards, allow moving around and getting out of the profile menu. Still can't make/edit profiles 2022-02-16 10:29:01 +01:00
SinnamonLat
aea066b70f Update menus to use the new input system all over... 2022-02-15 23:30:51 +01:00
SinnamonLat
8c53108d17 Start on profiles menu (does nothing and softlocks) 2022-02-15 01:28:57 +01:00
Sally Coolatta
a7022af93f Fix cup select & level select to both use the new input handling systems 2021-12-28 12:27:59 -05:00
Sally Coolatta
0179466107 Finalize char select multiplayer
- Add menu control fallbacks.
    - If it could not find a bind using your existing keys, then it looks at default controls.
    - If it could not find it then, and you're P1, then it looks through gamepads, and then lastly settles for keyboard.
    - Changed around the order of operations on the character select menu, to accommodate for this change.
- Added initroutine to menu_t, which is called every time without question when going to a new menu. This solves many, many minor bugs you could experience in the character select menu when changing between menus, due to things only being properly reset when selecting the character select menu option.
2021-12-28 12:02:31 -05:00
Sally Coolatta
3890c06a4d Fix number of players counter breaking when entering as player 1 & then exiting 2021-12-28 08:54:23 -05:00
Sally Coolatta
b1d36496b2 Properly implement joystick axes
NOW it's fully navigable with controller
2021-12-28 08:44:20 -05:00
Sally Coolatta
92aff0b57c Finish some unused SDL hat input support to use events rather than polling all of the time 2021-12-28 08:02:32 -05:00
Sally Coolatta
f0a3dc74bb Fix control saving 2021-12-28 06:48:53 -05:00
Sally Coolatta
25342af17f Slight adjustments to cause less misclicks 2021-12-28 05:48:17 -05:00
Sally Coolatta
c49a5dd0cf Properly only accept menu controls when its active 2021-12-28 05:19:04 -05:00
Sally Coolatta
7684f5980a Almost multiplayer char select
For some reason gamepads have not been registering buttons for a while, which makes this pretty hard to continue. Not sure if it's to do with how the menu cmd is generated, or something deeper in the SDL code.
2021-12-25 08:58:21 -05:00
Sally Coolatta
d6d561f0e8 Unset delay when not pressing anything
Allows for mashing a button to be just as responsive as before
2021-12-25 07:10:56 -05:00
Sally Coolatta
e53ad4edf4 Char select fixes
- Allow input for multiplayer now
- Unset all devices in this menu
2021-12-25 07:02:07 -05:00
Sally Coolatta
e628894b47 Merge branch 'new-menus' into profiles 2021-12-25 06:09:53 -05:00
SinnamonLat
813b2da065 Fix the host menu re-folding on itself if you backed out of difficulty selection 2021-12-11 18:32:50 +01:00
SinnamonLat
cdb3b1ca98 Difficulty select before GP, match race & netgames 2021-12-11 18:22:56 +01:00