-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Joystick down movement not detected in menu #250
Comments
Hi, It is not an issue in Attract-Mode. See also https://bbs.archlinux.org/viewtopic.php?pid=1593822#p1593822 Hope it helps and bug report can be closed here if necessary. $ cat /etc/issue $ attract -v Using FFmpeg for Audio and Video. Shaders are available. |
The retropie guys have found a solution: https://retropie.org.uk/forum/topic/1686/up-down-y-axis-not-working-in-3-8/52 Works for me on arch amd64. |
Hi, same problem here. Is there anything I need to do additionally? |
I'm not set up with a build environment for this, but is the issue here (which I am also having) this particular check:
on line 360 of fe_input.cpp? Seems like the ordering of joyStrings will cause issues with this check as shorter strings are first in the array that can match later, longer values if you limit the length of comparison. |
- Not sure if this fixes the actual issue, but there is definitely an error as identified by fatavatar in the issue discussion (Upos axis was being matched to Up due to the string matching method)
@fatavatar thanks for pointing that out,. I've fixed the ordering of joyStrings so the matching should work now. Hopefully this fixes the original issue as well |
@fatavatar @mickelson I have just tested 25e2781, it fixes the issue. |
Hello, |
@madlittlepixel no need to patch any files, you just need to get the master branch and recompile. Either use git to pull the code in, or download a zipped version: https://github.com/mickelson/attract/archive/master.zip |
@vossim Thanks, I guess I need to figure out how to pull the code in properly. Thats where I am stuck at. Im still learning. |
Hello, Current patch/file which affects a good setting: Now /drivers/hid/hid-dr.c is reverted to previous version, so soon should work again. At this moment who has the same troubles still, boot an older kernel. Hope, it helps. Happy playing! |
@vossim ou, thanks for the notice! I recompiled the master branch on my affected kernel and it works! Ok, I had to re-set the joypad controls in AttractMode (example for UP: Joy1 Up to Joy1 Uneg) and then works as it should. Tested on Mageia 5 (64bit), kernel 4.4.32-desktop-1.mga5 Thanks |
Yeah, today I have got an update of kernel, where is the fix implemented and it works with AttractMode 2.2.0 as well! And it solves not only AttractMode, but also other apps like KDE4/Plasma5 → SystemSettings → Inputs → Gamepad. Then I recompiled the master branch too, and still it works with any change. For me/Mageia users it is solved. Thanks. |
Hey guys, i have built my own bartop arcade, now that its finished i came along the same problem. My UP does not work, it does though in retropie and in the games NOT in attract mode displays. I updated the kernel via the Retropie setup, but that did not fix any problems. |
@KingVarus if you just get the code on the master branch, compile it and use that, it just works. |
@vossim would you mind telling me what the master branch is, and how to get it and compile it? |
@KingVarus the master branch is the most up to date version of the source code of attract mode, you can either use git to pull it in, or download a zipped version from https://github.com/mickelson/attract. Compilation instructions are in Compile.md. If you want a precompiled version, you'll have to wait for the next release. |
@vossim i´m really sorry that i´m not that good in all that stuff. My question is, can i just type something in the terminal and it pulls it in? I´ve read the compile.md but i dont get it. Where do i have to put the zip? |
@vossim i´ve read the compile.md again, there is nothing stated about putting anything on the SD card, or SSH, i just dont get how i change anything when i´m not doing anything over SSH or the SD card... If you dont have the time to help me out in detail, where can i find the precompiled versions? and are those easier to install? |
@KingVarus take a look at https://github.com/mickelson/attract/wiki and look for the compile instructions for your particular version of Raspbian. You will SSH onto the pi and execute the commands the from the instructions. Its a bit more explicit than the steps in the compile.md. Hopefully that gets you up and going if you are not there already. |
@vossim @fatavatar Thanks Again, |
Hello, I've tried the hex editor method and it works but my joystick and buttons no longer works in EmulationStation and my keyboard arrows no longer work. I reverted that change and then compiled attract mode via the instructions on the wiki page and that did not fix the problem. Also my "A" button doesn't work in Attract Mode. Everything works fine in a game, however. Is there anything else I could try? I think I've read that upgrading or downgrading the kernel could fix it but that's pretty scary to me :) |
Got it working by running rpi-update to update the kernel then rebinding the inputs in emulation station. |
Hello!
Our DragonRise Inc. Generic USB Joystick (ID 0079:0006) exhibits a potential bug: When configuring the controls, the joystick "up" movement is detected as "Joy0 Uneg" and is added correctly as such, with that exact label. It also works perfectly to scroll "up" in the game carousel.
The "down" movement is detected as "Joy0 Upos". HOWEVER once you go back from adding an action, it shows up as "Joy0 Up" (note Up in overview vs. Upos in add action screen), and it does NOT work for scrolling "down" in the game carousel.
I also tried to manually overwrite ~/.attract/attract.cfg with "up Joy0 Upos" (after closing attract first, of course). However, after restarting attract, the "down" movement still isn't working in the game carousel.
Finally, I changed "Joy0 Upos" back to "Joy0 Up" and "Joy0 Uneg" to "Joy0 Down", which resulted in none of the directions working in the carousel.
The weird thing is, in all of the games, the joystick works perfectly in all directions, up, down, etc. Only the menu exhibits this erroneous behaviour.
Is this something that needs to be fixed in https://github.com/mickelson/attract/blob/master/src/fe_input.cpp ?
Attract built today manually from git on Raspi v3:
attract -v
Attract-Mode v2.1.0 (Linux, SFML 2.3 +FontConfig +RPi +SWF +7z)
Using Libav for Audio and Video.
avcodec 56.1.0 / avformat 56.1.0 / swscale 3.0.0 / avresample 2.1.0
Shaders are not available.
The text was updated successfully, but these errors were encountered: