Retropie with rotary encoder issues.
-
Hey guys,
Ive been working on a gaming project for awhile that uses a rotary encoder for left and right for games like pong or tempest. I really enjoy these kinds of games and a D pad just doesn't do them justice. Anyway I have setup gpio inputs for keyboard on retropie and the rotary encoder is recognized but I'm getting the same input for both turning directions. So I can set it to right or left but I can't have both. Another problem is that it holds for half turns and I can not continuously turn it to make assets move in the game. For example the main menu. Every click turn is not recognized but if I do half turns it holds that input.Here is the Rotary encoder I'm using. https://www.amazon.com/Cylewet-Encoder- ... oder&psc=1
with a Pi Zero
I have Ground to pin 14
+to pin 1
Clk to pin 7
DT to pin 10
SW to pin 15
Any help would be greatly appreciated -
-
@thedudester80 As rbaker implies above, you are probably better off using a spinner device (effectively, mouse input) to play games that use spinners like tempest.
WIth an indexing rotary, the best you are getting is a digital "trigger" either up or down. While this may be mappable to keyboard kepresses or gamepad buttons with the right controller, it is like pressing a button, or using a digital joystick over and over. This is not the way to capture accurate speed inputs the way a mouse input would work.
However, that kind of indexer would work for something like Frontline.
-
thedudester80 I am trying to create almost the same thing. Did you ever get this working?
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.