tetrio / issues

Report issues and discuss improvements / feature requests around TETR.IO
https://tetr.io
401 stars 21 forks source link

Cannot set left d-pad key using Pokken Tournament DX Pro Pad #135

Closed lpla closed 4 years ago

lpla commented 4 years ago

Describe the bug/issue

While setting keys to use the Pokken Tournament DX Pro Pad, left key from the d-pad is not registered.

Reproducing

Steps to reproduce the behavior:

  1. Go to 'Config' in the main menu
  2. Click on 'Move falling piece left'
  3. Press left key in your controller and nothing happens.

Expected behavior

Key gets registered like all other keys in the controller.

Screenshots

Captura de pantalla 2020-03-10 a las 17 17 37

Your setup

o5k commented 4 years ago

Does the gamepad work on https://html5gamepad.com/ ?

lpla commented 4 years ago

Yep, it works and registers all positions of d-pad. Here are all positions of the d-pad registered by html5gamepad (center or no press, left, top-left, top, top-right, right, bottom-right, bottom, bottom-left):

Captura de pantalla 2020-03-10 a las 22 10 18 Captura de pantalla 2020-03-10 a las 22 10 23 Captura de pantalla 2020-03-10 a las 22 11 01 Captura de pantalla 2020-03-10 a las 22 11 13 Captura de pantalla 2020-03-10 a las 22 11 17 Captura de pantalla 2020-03-10 a las 22 11 24 Captura de pantalla 2020-03-10 a las 22 11 30 Captura de pantalla 2020-03-10 a las 22 11 34 Captura de pantalla 2020-03-10 a las 22 11 39
o5k commented 4 years ago

that seems to only be activating one axis though, whereas i'd expect there to be 2?

lpla commented 4 years ago

Yes, Chrome is detecting the d-pad as a joystick with two axis. Safari, in the same test, is detecting the d-pad as individual buttons. See this screenshot in Safari pressing only left d-pad button:

Captura de pantalla 2020-03-11 a las 8 53 05
lpla commented 4 years ago

Firefox has the same issue as Chrome, I cannot set left d-pad in config. And left d-pad gets detected by https://html5gamepad.com:

Captura de pantalla 2020-03-11 a las 8 59 15
Wirtualnosc commented 4 years ago

With chrome being an example, does any other axis than 9 actually activate? Similarly with Firefox and axis othern than axis 0.

lpla commented 4 years ago

Everything else stays at 0, as shown in the screenshots.

o5k commented 4 years ago

Seems to be a browser/gamepad issue

lpla commented 4 years ago

For the record, I retested with latest version and issue still happens. And gamepad works well in other programs like emulators. Browser shouldn't be an issue here as it recognises the d-pad directions well as previous screenshots shown, probably because it is a Generic HID Controller.

I don't know if anyone had issue with other kind of controllers which protocol could be similar.

kreefonghong commented 3 years ago

oh! I am experiencing a similar issue! I posted on reddit and discord and they said to come here:

"Has anyone had success setting up the dpad on ps3/ps4/xbox360 controllers on tetr.io?

Up on the dpad shows as negative axis 9, down and right both show as positive axis 9, left doesn't register at all. It's the same on both the app and the website.

The analogue sticks appear to work, but I find them too imprecise for tetris."

https://www.reddit.com/r/Tetris/comments/jrcm6f/cant_get_tetrio_to_recognize_dpad_inputs_on_ps3/?utm_medium=android_app&utm_source=share

Someone replied and said there's some kind of 3rd party app I can use. I'll look around and see what I can find.