Please select To the mobile version | Continue to access the desktop computer version
| |
| | |

8Bitdo Official Forum

 Forgot password?
 Register
Search
View: 8567|Reply: 24

RetroPie - D-Pad Recognised as Keyboard over BT

[Copy link]

1

Threads

5

Posts

35

Credits

Newbie

Rank: 1

Credits
35
Post time: 2015-08-14 14:14:32
| Show all posts |Read mode
Edited by bunglenutter at 2015-08-14 14:15

I have been fighting with this controller for a couple of evenings trying to get the thing to connect via bluetooth to RetroPie. I finally managed to get it to connect, but there is another issue - when I try to configure the buttons, I get nothing from the d-pad. If I press up, down, left or right, nothing happens in the button configuration.

When booting RetroPie it starts up with "No gamepads detected", and if I hold one of the buttons (not d-pad), it recognises that it's a 8bitdo NES30 gamepad, but if I hold the d-pad it recognises it as a keyboard. In short, I can't use it over bluetooth. If I plug it in via USB, it works fine, but I bought it for its wireless capabilities.

I tried downgrading the firmware to 2.52 as the issue was supposedly addressed with that update, but it still didn't work.

When I quit from RetroPie with F4, I see a lot of messages like this (after having tried pressing the d-pad):

"INFO: The key you just pressed is not recognized by SDL. To help get this fixed, please report this to the SDL mailing list <sdl@libsdl.org> EVDEV KeyCode 304"

Does anyone else have this problem or know how to fix it?
Reply

Use magic Report

0

Threads

10

Posts

333

Credits

Full Member

Rank: 3Rank: 3

Credits
333
Post time: 2015-08-22 23:27:04
| Show all posts
Edited by jboy at 2015-08-22 23:32

I found a work-around! I still think the firmware needs to be updated to ensure proper compatibility but I was able to piece together a working solution from the following forum posts:
https://github.com/Ryochan7/antimicro/issues/129
http://forum.8bitdo.com/thread-328-1-1.html

Here's my solution:
1. Start Controller in Joystick Mode (Start + R)
2. From the first forum post, add the input joystick property so that SDL can see the joystick. You will need to create a file in /etc/udev/rules.d
I named mine "10-local.rules" so that it loads ahead of all other rules files. In that file, add the following lines.
  1. # Add the ID_INPUT_JOYSTICK attribute to the device so SDL picks up on it
  2. SUBSYSTEM=="input", ATTRS{name}=="8Bitdo SNES30 GamePad Joystick", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"
Copy the Code
Essentially this is writing the ID_Input_Joystick flag to any device it finds named "8Bitdo SNES30 GamePad Joystick".
At this point I could use the controller in emulationstation but RetroArch still wasn't working properly. This seemed to be due to the incorrect buttons being recorded to the config file.

3. I used the example input file from the second forum post to fix my 8BitdoSNES30GamePadJoystick.cfg file in /opt/retropie/configs/all/retroarch-joypads

My 8BitdoSNES30GamePadJoystick.cfg file now looks like this:
  1. input_device = "8Bitdo SNES30 GamePad Joystick"
  2. input_driver = "udev"
  3. input_r_btn = "18"
  4. input_save_state_btn = "11"
  5. input_start_btn = "22"
  6. input_exit_emulator_btn = "22"
  7. input_l_btn = "17"
  8. input_load_state_btn = "12"
  9. input_up_axis = "-1"
  10. input_a_btn = "11"
  11. input_b_btn = "12"
  12. input_reset_btn = "1"
  13. input_down_axis = "+1"
  14. input_right_axis = "+0"
  15. input_state_slot_increase_axis = "+0"
  16. input_x_btn = "14"
  17. input_menu_toggle_btn = "14"
  18. input_select_btn = "21"
  19. input_enable_hotkey_btn = "21"
  20. input_y_btn = "15"
  21. input_left_axis = "-0"
  22. input_state_slot_decrease_axis = "-0"
Copy the Code

Note: I could not get the [select + L] or [select + R] button combinations to work for saving and loading save states so I changed them to [select + b] and [select + a]

All now appears to be operational. Whew! Now I can get back to gaming.
Reply Support 2 Not support 0

Use magic Report

2

Threads

16

Posts

91

Credits

Member

Rank: 2

Credits
91
Post time: 2015-10-25 05:21:20
| Show all posts
Edited by StefanD at 2015-10-25 05:28

I have no solution. But I want to raise awareness that this problem is very likely related to the Bug that I described in my other thread (See http://forum.8bitdo.com/thread-588-1-1.html for details). User jboy discovered the bug too in an earlier post: The HID usage descriptors that are sent by the Gamepad when connected with Bluetooth say that it is a compound device of Keyboard+Mouse+Gamepad.

I hope the 8bitdo Team will fix that soon.

Reply Support 1 Not support 0

Use magic Report

0

Threads

10

Posts

333

Credits

Full Member

Rank: 3Rank: 3

Credits
333
Post time: 2015-08-19 16:08:50
| Show all posts
bunglenutter 2015-08-18 14:02
Do they watch the forums?

I hope so.
Reply Support 1 Not support 0

Use magic Report

0

Threads

10

Posts

333

Credits

Full Member

Rank: 3Rank: 3

Credits
333
Post time: 2015-08-14 16:19:28
| Show all posts
Are you using OSMC with Retrosmc?

I am having a nearly identical problem and have also been trying to get it working for 2 nights now.

I also tried connecting in keyboard mode but the connection fails in that mode while being successful in other modes. I tested the keyboard mode with my mac and PC as well and it worked fine.

I'm at a total loss right now for the root cause and how to resolve it. I hope someone else can shed some light.
Reply Support Not support

Use magic Report

1

Threads

5

Posts

35

Credits

Newbie

Rank: 1

Credits
35
 Author| Post time: 2015-08-14 23:41:55
| Show all posts
I'm just using the plain RetroPie install, no extra stuff.
Reply Support Not support

Use magic Report

0

Threads

10

Posts

333

Credits

Full Member

Rank: 3Rank: 3

Credits
333
Post time: 2015-08-15 15:56:40
| Show all posts
I did some more digging around and it appears that the SNES30 is being recognized as a mouse and a gamepad both. I suspect this has something to do with why I can't get it to function on my OSMC with Retrosmc install. Though, I haven't actually fixed it yet.
Reply Support Not support

Use magic Report

1

Threads

5

Posts

35

Credits

Newbie

Rank: 1

Credits
35
 Author| Post time: 2015-08-15 16:44:45
| Show all posts
Let me know if you do - I have literally almost no idea what I'm doing. I'm surprised given that they supposedly fixed in with a firmware update though.
Reply Support Not support

Use magic Report

0

Threads

10

Posts

333

Credits

Full Member

Rank: 3Rank: 3

Credits
333
Post time: 2015-08-15 18:18:49
| Show all posts
  1. I: Bus=0005 Vendor=2820 Product=0009 Version=0100
  2. N: Name="8Bitdo SNES30 GamePad Joystick"
  3. P: Phys=00:1b:dc:06:b2:83
  4. S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/bluetooth/hci0/hci0:65/0005:2820:0009.0008/input/input9
  5. U: Uniq=fe:f9:4d:c4:9e:f8
  6. H: Handlers=sysrq kbd mouse0 js0 event2
  7. B: PROP=0
  8. B: EV=12001f
  9. B: KEY=4 0 ffff0000 1f0000 10000 2000007 ff9f307a c14057ff febeffdf ffefffff ffffffff fffffffe
  10. B: REL=103
  11. B: ABS=30627
  12. B: MSC=10
  13. B: LED=1f
Copy the Code


this is what I get when I type the following into the terminal:
cat /proc/bus/input/devices

You'll notice that its being recognized as mouse as well.

Still not sure if any of this is helpful though...
Reply Support Not support

Use magic Report

1

Threads

5

Posts

35

Credits

Newbie

Rank: 1

Credits
35
 Author| Post time: 2015-08-16 15:02:16
| Show all posts
I think another look at the firmware is needed by the manufacturers.
Reply Support Not support

Use magic Report

0

Threads

10

Posts

333

Credits

Full Member

Rank: 3Rank: 3

Credits
333
Post time: 2015-08-17 16:28:33
| Show all posts
bunglenutter 2015-08-16 15:02
I think another look at the firmware is needed by the manufacturers.

I agree. Hoping that some of the information I posted will help them fix the issue in firmware.
Reply Support Not support

Use magic Report

1

Threads

5

Posts

35

Credits

Newbie

Rank: 1

Credits
35
 Author| Post time: 2015-08-18 14:02:46
| Show all posts
Do they watch the forums?
Reply Support Not support

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|8bitdo.com  

2017-04-24 16:43 GMT-8 , Processed in 0.060362 sec., 18 queries .

Powered by Discuz! Array& MultiLingual version by:codersclub

8Bitdo Tech HK Ltd., © 2013-2017 all rights reserved..

Quick Reply To Top Return to the list