Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

Yet another usb controller issue - fbNeo



  • I am having a nightmare here, have read all the docs but am getting very confused and going around in circles - basically mame games work fine because I have set the controller - a "dragon rise usb controller', you know, one of those 'zero delay usb joystick controller' jobbies - up in ES, and also in mame so all works great there, but for NeoGeo games using fbNeo I only have the directions and the A (generally fire)/srat/coin buttons working.

    I have gone into retroarch configs, the input page and set what I think are the right keys etc but it still doesn't work.

    Anyone with a very simple guide to setting it all up would be appreciated - I have four buttons aligned left to right in the horizontal style.

    As I said, I have read the docs but am finding it hard to understand exactly how what I am trying to do fits in with what I am reading so please be gentle!


  • Global Moderator

    Did you check how the buttons are mapped to the virtual RetroPad ? Go into the Input settings and check how your RetroPad buttons are mapped to the core inputs. FBNeo uses the same Libretro generated configuration file (saved in /opt/retropie/configs/all/retroarch-joypads).

    EDIT: is your controller detected as a gamepad or as a keyboard ?



  • @mitu thanks - ill will check that out - it is detected as a gamepad.



  • OK, have had a little time so here goes...

    I ftp's into the Pi and found the file at /opt/retropie/configs/all/retroarch-joypads but it appears to be a redirect to a folder which contains a .cfg called:
    DragonRise Inc. Generic USB Joystick .cfg

    which is my encoder.
    I have downloaded that config and it looks like this:

    input_device = "DragonRise Inc.   Generic   USB  Joystick  "
    input_driver = "udev"
    input_start_btn = "9"
    input_exit_emulator_btn = "9"
    input_down_axis = "+1"
    input_right_axis = "+0"
    input_state_slot_increase_axis = "+0"
    input_select_btn = "8"
    input_left_axis = "-0"
    input_state_slot_decrease_axis = "-0"
    input_up_axis = "-1"
    input_a_btn = "6"
    input_b_btn = "4"
    input_reset_btn = "4"
    input_enable_hotkey_btn = "8"
    input_x_btn = "2"
    input_menu_toggle_btn = "2"
    input_y_btn = "0"
    
    

    If I then ssh in and do a lsusb I get the joystick recognised:
    Bus 001 Device 004: ID 0079:0006 DragonRise Inc. PC TWIN SHOCK Gamepad

    I then do 'jstest /dev/input/js0' and get:

    Driver version is 2.1.0.
    Joystick (DragonRise Inc.   Generic   USB  Joystick  ) has 7 axes (X, Y, Z, Rx, Rz, Hat0X, Hat0Y)
    and 12 buttons (Trigger, ThumbBtn, ThumbBtn2, TopBtn, TopBtn2, PinkieBtn, BaseBtn, BaseBtn2, BaseBtn3, BaseBtn4, BaseBtn5, BaseBtn6).
    

    If I press my buttons I get the following results:

    Button A = 6:On
    Button B = 2:Shows as a large number 16215 then -5406!
    Button C = 4:On
    Button D = 2:On
    Start Button = 0:On
    Select Button = 9:On

    (The Start/Select and A buttons are all working as expected. I also use the Select button as my Hotkey)
    In my limited knowledge does it look like B is getting an analogue?

    So, although I am not any further in actually fixing it, at least I have more info to perhaps help?


  • Global Moderator

    @chubsta The B buttons looks to be registering as a joystick axis - are you sure you wired it correctly ?



  • @mitu I had just spotted that and updated the post - I will check it...



  • OK, I have moved the connectors and button B is now showing as '7:On'...



  • @mitu Following much switching of wires and buttons I now have a working B button in FBNeo, a problem remains though in that the A and B buttons are incorrect in terms of their use and appear swapped. I have configured the buttons again in ES and have tried swapping them around in there but it does not help the issue. My current cfg shows:

    input_device = "DragonRise Inc.   Generic   USB  Joystick  "
    input_driver = "udev"
    input_start_btn = "9"
    input_exit_emulator_btn = "9"
    input_down_axis = "+1"
    input_right_axis = "+0"
    input_state_slot_increase_axis = "+0"
    input_select_btn = "8"
    input_left_axis = "-0"
    input_state_slot_decrease_axis = "-0"
    input_up_axis = "-1"
    input_a_btn = "6"
    input_b_btn = "7"
    input_reset_btn = "7"
    input_enable_hotkey_btn = "8"
    input_x_btn = "2"
    input_menu_toggle_btn = "2"
    input_y_btn = "0"
    

    Any ideas?



  • OK, may have solved this, Button B is now working and have swapped over A and B so A is fire, B is bomb for instance by going into the Core remap options.

    If this is indeed now working, can someone just point me in the right direction for which options to change in the core remap so that my C and D are the same as C and D on a neogeo control panel?


Log in to reply
 

Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.