Question

In python I want to simulate a joystick that when used, to give values between -63 and +63 let's say. When the value it's positive, I want to press the "w" key and "s" key when negative. I am not having problems receiving the values, but to transform these analog values into digital key presses. Does anyone has any idea how to do it (code can be in any language, I just need an general idea).

Was it helpful?

Solution

Use PostMessage with the WM_CHAR command (if you're using Windows - you didn't say).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top