pyvjoy
pyvjoy copied to clipboard
vjoy on raspberry pi 4
im trying to use this on a rasperry pi 4 b, and its spitting out Unable to load vJoy SDK DLL. Ensure that vJoyInterface.dll is present /home/pi/.local/lib/python3.9/site-packages/pyvjoy/utils/x64/vJoyInterface.dll: invalid ELF header
i know this is built for windows but is there a way to do it on pi
btw im taking in a number and trying to make that the x cord
import serial.tools.list_ports import pyvjoy j = pyvjoy.VJoyDevice(1) serialInst = serial.Serial() serialInst.baudrate = 9600 serialInst.port = '/dev/ttyACM0' serialInst.open() while True: packet = serialInst.readline() packet = packet.decode('utf').rstrip('\n') if(packet.find("x")==True): packet = packet[:-1] j.set_axis(pyvjoy.HID_USAGE_X, 0x1) else: packet = packet[:-1] j.set_axis(pyvjoy.HID_USAGE_Y, 0x1) import serial.tools.list_ports import pyvjoy j = pyvjoy.VJoyDevice(1) serialInst = serial.Serial() serialInst.baudrate = 9600 serialInst.port = '/dev/ttyACM0' serialInst.open() while True: packet = serialInst.readline() packet = packet.decode('utf').rstrip('\n') if(packet.find("x")==True): packet = packet[:-1] j.set_axis(pyvjoy.HID_USAGE_X, 0x1) else: packet = packet[:-1] j.set_axis(pyvjoy.HID_USAGE_Y, 0x1)