Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

Button remapping needs debounce #8

Open
BryanHaley opened this issue Feb 18, 2019 · 5 comments
Open

Button remapping needs debounce #8

BryanHaley opened this issue Feb 18, 2019 · 5 comments

Comments

@BryanHaley
Copy link

When attempting to remap a button under Configuration>Gamepad>Controls, pressing A to begin remapping a control will just bind the control to the A button (ENTER). I suspect this is due to a lack of debouncing, and the remapping menu is looking for input on the very next frame, which is almost always going to be A. If you're really fast you can manage to rebind controls, but it's extremely inconvenient nonetheless.

Possible solution: wait until the A button is released before beginning to look for inputs for the remapping.

@Myaats
Copy link
Contributor

Myaats commented Feb 18, 2019

if I understood correctly it is the lack of waiting for the key to not be pressed in https://github.com/switchports/mainui_cpp/blob/master/menus/Controls.cpp#L302 ?

@BryanHaley
Copy link
Author

BryanHaley commented Feb 18, 2019

Most likely yes.

I'm trying to build the project to test out some changes, but the linker isn't finding -lmainui, -lclient, and -lserver. Should I not be building via "make -f Makefile.switch" ? Seems like it's only building the main engine and not the other components of HL1.

@Myaats
Copy link
Contributor

Myaats commented Feb 18, 2019

you need to create a lib folder and put the static libraries you get from compiling https://github.com/switchports/mainui_cpp & https://github.com/switchports/hlsdk-xash3d in there and it should link fine (this is a hacky workaround due to the lack of dynamic linking support on the switch)

@BryanHaley
Copy link
Author

BryanHaley commented Feb 19, 2019

Successfully compiled both and moved the libs, but getting undefined reference errors in the linking stage of the main project now.

https://pastebin.com/vmZ3wMWp

@Myaats
Copy link
Contributor

Myaats commented Feb 19, 2019

I'd compile the client, then clean and then compile the server since they share files and use #ifdef's in them based on the issue also it seems like you are missing or have an outdated version of libnx & mesa / libdrm-nouveau

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants