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

Led number issue, controller sub type request #1

Open
djlastnight opened this issue May 10, 2016 · 2 comments
Open

Led number issue, controller sub type request #1

djlastnight opened this issue May 10, 2016 · 2 comments

Comments

@djlastnight
Copy link

Hi, I just created account to say Thank You for creating such an Amazing API!
I use it at my application with almost no problems. The GetLedNumber() always returns 1.
I'm using P/Invoke to call your code from C#. Here is the function signature:
[DllImport("vXboxInterface.dll", EntryPoint = "GetLedNumber", CallingConvention = CallingConvention.Cdecl)] private static extern bool GetLedNumber(uint userIndex, out byte ledNumber);

I can live without the led number, but I want to ask you for a feature to implement.
Can you please provide a function, which sets the virtual controller sub type (subtypes listed here: https://msdn.microsoft.com/en-us/library/windows/desktop/hh405050%28v=vs.85%29.aspx)?

Thank you again!
Best Regards,
djlastnight

@shauleiz
Copy link
Owner

Thank you,
This interface is only temporary, or proof of concept.
Once we finalize the driver I will come back to it.

I know that on Windows 7 the Led number is meaningless. Is this the case?

As for your suggestion:
Interesting. Need to see if it is feasible. Probably a change in the driver.

@djlastnight
Copy link
Author

djlastnight commented May 10, 2016

Yes, I tested it under Windows 7 (x86 and x64) along with real xbox 360 controller.

Thank you for the fast reply.
I hope you will add my request to your ToDo list :)

Best wishes,
djlastnight

-edit: If you want, you could easily add support for the guide button.
#define XINPUT_GAMEPAD_GUIDE 0x0400
I just did it, and it works.

@djlastnight djlastnight mentioned this issue Jul 8, 2016
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

2 participants