Skip to content

Add libusb impl #87

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

Closed
wants to merge 1 commit into from
Closed

Add libusb impl #87

wants to merge 1 commit into from

Conversation

rsandoz
Copy link
Contributor

@rsandoz rsandoz commented Feb 18, 2017

Not sure if you want to use this. I just forced in some libusb-win32 support. Currently only work with RBP2016 when razer_use_alternate_effect=1 in settings.

@CalcProgrammer1
Copy link
Owner

I don't want to put non-Razer SDK stuff in the same RazerChroma.cpp, and if I'm going to add the alternative Razer drivers it'd be better to build it against Terry Cain's drivers with the patches to make it work on Windows rather than reimplementing it for one cherry-picked device. If you made this for yourself, that's fine, but I don't like merging things that don't work for all supportable devices equally, especially when they bring in more dependencies.

I don't like adding tons of dependencies which is why I've avoided libusb-win32 up to now, its use of USB device filters is ugly compared to using Windows' HID library, but I'm finding that I might have to implement it for the Poseidon Z RGB as I could only make it work using libusb-win32 on Windows.

What I might do is change RazerChromaLinux.cpp, maybe rename it RazerDrivers.cpp since that's what Terry's project is called, and add a second Initialize function for Windows. Then use a device flag such as razer_use_unofficial_drivers or something to enable the use of that driver rather than the SDK. I like modularity, and keeping the unofficial drivers separate from the SDK is best.

@rsandoz
Copy link
Contributor Author

rsandoz commented Feb 21, 2017 via email

@CalcProgrammer1
Copy link
Owner

In a roundabout way, I am "completing" this merge request. I've forked your Win32 OpenRazer fork on GitHub:

https://github.com/CalcProgrammer1/openrazer-win32

and added some improvements to it, got it building with the latest upstream OpenRazer code.

It's supported and working on my OpenRGB program, which aims to be a complete replacement for all the proprietary OpenRGB programs on Windows and also support Linux:

https://gitlab.com/CalcProgrammer1/OpenRGB

I'm moving KeyboardVisualizer to the OpenRGB SDK. It's still in development, but I have a test build working in the OpenRGB_SDK branch.

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

Successfully merging this pull request may close these issues.

2 participants