AndersMalmgren / FreePIE

Programmable Input Emulator
647 stars 144 forks source link

RawInput for Joysticks #199

Open viperfan7 opened 3 years ago

viperfan7 commented 3 years ago

I find it odd how FreePIE doesn't seem to support RawInpute for joysticks, would allow for some interesting things like binding the mouse stick on the X52 to a vJoy device, allowing games that don't support RawInput to use it like any other axis.

Especially since SharpDX supports RawInput, could use something like

Joystick[x].rawAxisList() to return a list of all available axis Joystick[x].rawButtonList() to again, return a list of all available buttons Joystick[x].rawAxis[] to get the state of any RawInput axis Joystick[x].rawButton[] to get the state of any RawInput Button

nosazik commented 2 years ago

Try j = joystick[0] j.x, j.y, j.zRotation or any axis they had and if want to add another joystick[1 or 2]

viperfan7 commented 2 years ago

The problem is that is still using DirectInput, RawInput works a bit differently as its a bit lower level, and allows you to access things that are normally not able to be accessed, like the ministick found on the X52

AndersMalmgren commented 2 years ago

I never got RawInput working. If you want to give it a go I gladly pull the code. The event never triggered if I recall correctly

AndersMalmgren commented 2 years ago

This might be something (FreePIE is a WPF app)

https://code.google.com/archive/p/slimdx/issues/785