-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch DirectInput to SDL #1768
Conversation
Download the built assets for this pull request: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything LGTM in TR1.
In TR2, everything seems to work except there seems to be a bug with the console. Try doing:
- New game or
play 1
- Open inventory and go the controls menu. You don't even have to change anything.
- Exit the controls menu and go back to the game.
- Open the console.
You should now be stuck in a state where no inputs register except oddly up and down to scroll past console commands. You can't type, enter doesn't work, etc. You have to force quit the game.
I still need to add an UI for the controller settings, but other than that, the code for the entire thing is out there.
Also, my PS5 controller did not work in TR2. Idk if it should be or not? I reading this as the UI isn't done but the functionality should be working. LMK if I read it wrong.
c48fd5f
to
fde6822
Compare
Getting this build issue. I think |
e4df814
to
629ef3e
Compare
Thanks. Rebased + fixed. |
Nice the console soft lock is fixed. Two things:
|
Controller is working well on W11. Stella's TR2 site: Right now, the controller's L2/R2 buttons are working like TR1X. L2 is sidestep left and R2 is sidestep right. Stella says for PS1 TR2, R2 + D-pad left/right is sidestep, and L2 is flare. |
@walkawayy updated the UI to offer editing controller layouts. It suffers from bad text overlaps due to the two-column layout and lengthy controller key names. I'd like to tackle this before merging as it feels unfinished as it is. At the same time, I'd like to keep the current two-column UI layout to avoid too many changes as this PR is already too big. Can you help me shorten the names in |
There are 4 control schemes available in PS1 TR2, of which one is the one you quoted above. If you use the scheme where sidesteps are still available from both shoulder buttons, you are forced to use flares from the inventory. TR3 remedied this by introducing a shortcut of WALK+SELECT to use a flare directly, while maintaining shoulder button sidesteps. I think it'd be a worthwhile addition to TRX. |
Correct – my plan is to add TR3 sidesteps in a follow-up PR as this one is already massive. |
1 – Thanks – fixed. |
9f137ac
to
add35aa
Compare
Alright – I've shortened the names. While they're not the prettiest, we're eventually going to inject icons for the other buttons anyway. |
Checklist
Description
Resolves #1695. Can cause regressions in TR1.
I still need to add an UI for the controller settings, but other than that, the code for the entire thing is out there.