1
0
mirror of https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter synced 2024-11-28 12:02:15 -05:00
Arduino-USB-HID-RetroJoysti.../X-Arcade/README.md
2021-11-05 01:21:46 +02:00

46 lines
1.1 KiB
Markdown

# Arduino_X-Arcade_USB-adapter
## Keyboard
https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter/tree/master/PS2_Soarer_Converter
## 2 Joysticks
"Old" PS/2 -version of X-arcade.
![X-Arcade](https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter/raw/master/Images/x-arcade-dual-joystick.jpg)
```
D9-connector -> Arduino Pro Micro
6 (data) -> 3 (PD0)
5 (clk) -> 2 (PD1)
1 (5V) -> Vcc
2 (PS/2-mode) -> Vcc
9 (5V) -> Vcc
Shield -> GND
Or
PS/2-connector -> Arduino Pro Micro
Data (green or blue) -> 3 (PD0)
CLK (white or purple) -> 2 (PD1)
5V (red) -> 5V
GND (black) -> GND
```
### Library
PS2KeyRaw
Arduino Pro Micro (select Arduino Leonardo from Arduino IDE).
PS/2 keyboard not needed.
Takes only about 10mA.
## Linux: keyboard -> joystick
- https://github.com/dmadison/ArduinoXInput
- https://superuser.com/questions/837464/treat-usb-keyboard-as-gamepad
- https://wiki.archlinux.org/title/Gamepad#Mimic_Xbox_360_controller_with_other_controllers
## RetroPie / Keyboard
- https://retropie.org.uk/forum/topic/8987/guide-setting-up-a-retropie-controls-using-ipac2-controller-extensive-tutorial-preconfigured-files