Let's you use gamepad buttons and joysticks like keyboard and mouse
So you can use your consoleas desktop machine too
Currently supporting :
- powkiddy x55
- anbernic rg552
just use your right joystick
by using L1 and R1
by using L2 and R2
yes even type
Start and Select ctrl and alt
D-Pad controlls arrows
Left joystick + X/Y/A/B
this one is a bit complicated
Q | E | T
A W|D R|G Y
S | F | H
-----------
. | 1 | U
5 ,|4 2|J I
? | 3 | K
-----------
N | Z | O
/ M|Y X|L P
; | C | B
Note. numbers indicate special keys
special keys:
- capslock
- space
- enter
- backspace
- meta/windows key
by pressing volume up and down at the same time you can enable and disable the mapper, usefull for playing games
have fun and share you feed back <3
before creating issue
Q: My layout is bad/not optimal?
A: ok? just edit a source code yourself, if you trully know the best layout and can stand by it being the default submit PR and elaborate
Q: Would this project work on other consols?
A: In theory, if you have soc console it might work out of the box but if it doesn't changing hardcoded
inputDevice inabs("/dev/input/event1");//joysticks
inputDevice incon("/dev/input/event3");//buttonsin joypad.cpp to correct ones should fix the issue
otherwise you might need to slight rearrange the code, evtest should help with adjustments
Remember. don't make issue about other devices not working
Q joypad doesn't work on my supported deive
A make sure you have specified your device inside /etc/joypad.conf (also look main() in main.cpp)
Q: Will it work on regular gamepad?
A: It might, otherwise you need to adjust it (look question above)
Q: How do i build a package?
A: On debian install deps
sudo apt install build-essential libevdev-dev
and run build-deb script inside the repo
Q: Will it work on x86/64 architecture?
A: It should if you build it yourself, still might need adjustments (look above)
Q: Build for diffrent distro?
A: Do it yourself, analyze build-deb, i won't object to PR
Q: How do i get Debian onto x55?
A: https://github.com/hexdump0815/imagebuilder/blob/main/doc/console/readme.md
Q: apt repo?
A: yeah https://gitlab.com/velvet-os/velvet-repo sudo apt install joypad



