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

RawInput for Joysticks #199

Open
viperfan7 opened this issue Dec 27, 2020 · 4 comments
Open

RawInput for Joysticks #199

viperfan7 opened this issue Dec 27, 2020 · 4 comments

Comments

@viperfan7
Copy link

viperfan7 commented Dec 27, 2020

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
Copy link

nosazik commented Feb 5, 2022

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Owner

This might be something (FreePIE is a WPF app)

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

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

3 participants