Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vjoy on raspberry pi 4 #25

Open
BagpipesRbetter opened this issue Mar 10, 2023 · 0 comments
Open

vjoy on raspberry pi 4 #25

BagpipesRbetter opened this issue Mar 10, 2023 · 0 comments

Comments

@BagpipesRbetter
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant