Welcome!

Final Burn Neo => FBN Discussion => Topic started by: rashed4004 on February 06, 2023, 09:14:04 PM

Title: How to add additional Button Combo for Hotkey
Post by: rashed4004 on February 06, 2023, 09:14:04 PM
Hello

I want to add a new Button Combo - B+C to use as Hotkey but can not find anywhere to do it.

Can you please help me with it?

Thanks
Title: Re: How to add additional Button Combo for Hotkey
Post by: dink on February 07, 2023, 12:18:07 AM
Windows FBNeo: no problem
Libretro FBneo: Can't (for a stupid reason, retroarch won't allow more inputs)

best regards,
- dink
Title: Re: How to add additional Button Combo for Hotkey
Post by: rashed4004 on February 07, 2023, 01:01:57 AM
damn :'(

It's for Steam Deck. So, thats not gonna happen.

Thanks for replying anyways.
Title: Re: How to add additional Button Combo for Hotkey
Post by: barbudreadmon on February 07, 2023, 02:59:52 AM
Libretro FBneo: Can't (for a stupid reason, retroarch won't allow more inputs)

Exactly, retroarch doesn't allow to declare a button and map it later, meaning you are limited by the number of buttons readily available on their retropad model. See https://github.com/libretro/RetroArch/issues/11273.

The combos made available for neogeo were decided in https://github.com/libretro/FBNeo/issues/51.
Title: Re: How to add additional Button Combo for Hotkey
Post by: rashed4004 on February 07, 2023, 06:43:22 AM
thanks guys. appreciate it.

its sad to see their unwillingness to add more key combinations.
Title: Re: How to add additional Button Combo for Hotkey
Post by: barbudreadmon on February 07, 2023, 08:54:07 AM
its sad to see their unwillingness to add more key combinations.

You don't understand, this is an open-source project, anyone who cares for a feature is free to implement it.
Title: Re: How to add additional Button Combo for Hotkey
Post by: rashed4004 on February 07, 2023, 03:55:33 PM
ahh ok. i misunderstood then.

i saw on those threads there was a particular person that implementing the 4 key combinations we have at the moment and denied to add any more. hence, i assumed he had control over that system.

anyways.
Title: Re: How to add additional Button Combo for Hotkey
Post by: barbudreadmon on February 08, 2023, 02:45:47 AM
ahh ok. i misunderstood then.

i saw on those threads there was a particular person that implementing the 4 key combinations we have at the moment and denied to add any more. hence, i assumed he had control over that system.

anyways.

That "particular person" is me, and i'm not "unwilling", i can't for the reasons explained multiple times in this topic and in those github issues.
Title: Re: How to add additional Button Combo for Hotkey
Post by: rashed4004 on February 08, 2023, 07:08:41 AM
i am sorry, didnt mean to be rude. just wanted to state what i gathered from reading the threads.

is there any easy way for users to replace any of those button combinations with something different?

Thanks
Title: Re: How to add additional Button Combo for Hotkey
Post by: barbudreadmon on February 08, 2023, 12:23:46 PM
is there any easy way for users to replace any of those button combinations with something different?

A C/C++ developer should have no issue building his own core after replacing the macro code at https://github.com/libretro/FBNeo/blob/868dee240104ed2ba3b74ec0bc3c9f467fb284f8/src/burner/libretro/retro_input.cpp#L200-L259 and  https://github.com/libretro/FBNeo/blob/868dee240104ed2ba3b74ec0bc3c9f467fb284f8/src/burner/libretro/retro_input.cpp#L1812-L1821
Title: Re: How to add additional Button Combo for Hotkey
Post by: rashed4004 on February 09, 2023, 04:58:41 PM
thank you very much.

Could you please tell me exactly what to re-compile for neogeo core after i make the changes in the macros in 2 below
 https://github.com/libretro/FBNeo/blob/868dee240104ed2ba3b74ec0bc3c9f467fb284f8/src/burner/libretro/retro_input.cpp#L200-L259 and  https://github.com/libretro/FBNeo/blob/868dee240104ed2ba3b74ec0bc3c9f467fb284f8/src/burner/libretro/retro_input.cpp#L1812-L1821

Sorry, I havent done these before but looking at the button config it certainly looks like i can give it a go and see what happens.

appreciate your guidance on this.
Title: Re: How to add additional Button Combo for Hotkey
Post by: barbudreadmon on February 10, 2023, 04:38:52 AM
Instructions to build the libretro core are available from https://github.com/libretro/FBNeo/tree/master/src/burner/libretro#how-to-build (obviously you need a dev environment like msys2)
Title: Re: How to add additional Button Combo for Hotkey
Post by: dink on February 10, 2023, 09:36:46 AM
Maybe it would be better to officially change one of the combinations to b+c?  Is there one already configured that isn't very useful for most games?
Title: Re: How to add additional Button Combo for Hotkey
Post by: rashed4004 on February 12, 2023, 07:25:50 AM
BCD isnt that much useful. At least the NeoGeo games that I play like The King of Fighters and some more has no function for BCD
Title: Re: How to add additional Button Combo for Hotkey
Post by: barbudreadmon on February 12, 2023, 08:09:06 AM
Users asked for those 4 macros, i won't remove any of them.
Title: Re: How to add additional Button Combo for Hotkey
Post by: pandapan on February 29, 2024, 02:42:52 PM
A C/C++ developer should have no issue building his own core after replacing the macro code at https://github.com/libretro/FBNeo/blob/868dee240104ed2ba3b74ec0bc3c9f467fb284f8/src/burner/libretro/retro_input.cpp#L200-L259 and  https://github.com/libretro/FBNeo/blob/868dee240104ed2ba3b74ec0bc3c9f467fb284f8/src/burner/libretro/retro_input.cpp#L1812-L1821
I imitated the rules of Neogeo and added the PGM combination key. As a result, the keys were wrong, which caused Neogeo to be unable to start the game