It took a while, but finally got the XBox controller to work with the Raspberry Pi 4 both via USB & Bluetooth. I am using a Pi 4 & gSender for Pi Version 0.7.4. I do not know if this will work on earlier Pi's if you try it and it does let us know.
This not just for cnc, if you are running raspberry pi os you can use this to set up your Xbox controller, and install qjoypad. This may not work for all games.
PLEASE NOTE: That this is for Xbox controllers with Bluetooth, this should Not work with wifi. Link for the XBOX & PI i used is at the bottom of the Description.
Music by Hawk vs Dove:
https://hawkvsdove.bandcamp.com/music
YOU CAN GET THE NEW MK2 LONG MILL HERE (These are affiliate links that help support the channel and add nothing to the overall cost):
https://sienci.com/product/longmillm...
GSENDER:
https://sienci.com/gsender/?ref=dehammer
1:43
sudo aptget update
sudo aptget upgrade
2:49
sudo apt install xboxdrv
3:31
lsusb
3:54
sudo aptget install qjoypad
4:30
echo 'options bluetooth disable_ertm=Y' | sudo tee a /etc/modprobe.d/bluetooth.conf
REBOOT AFTER ABOVE IS DONE
5:30
sudo bluetoothctl
5:52
agent on
defaultagent
scan on
6:51
connect MAC_ADDRESS
trust MAC_ADDRESS
(REPLACE MAC_ADDRESS WITH THE MAC_ADDRESS YOU GET FROM THE SCAN)
7:17
sudo aptget install joystick
7:33
sudo jstest /dev/input/js0
8:16
PUTTING IT ALL TOGETHER AND MAPPING KEYS IN QJOYPAD & GSENDER
The Below Links are affiliate links and I may make a commission off of any items sold. This helps fund the channel and to keep making videos.
Raspberry Pi:
https://amzn.to/2Za8eOi
32 Gig Micro SD Card:
https://amzn.to/3jmzVKU
Xbox Controller:
https://amzn.to/3leWbqN