This commit is contained in:
Adam Honse 2023-06-10 01:12:56 -05:00
parent f730f7eaae
commit 67bc2053d0
2 changed files with 1 additions and 10 deletions

View file

@ -15,7 +15,7 @@ WushiL50USBController::WushiL50USBController(hidapi_wrapper hid_wrapper, hid_dev
WushiL50USBController::~WushiL50USBController()
{
hid_close(dev);
wrapper.hid_close(dev);
}
void WushiL50USBController::setMode(WushiL50State * in_mode)

View file

@ -15,15 +15,6 @@
\*-----------------------------------------------------*/
#define WUSHI_PID 0x1234
/*-----------------------------------------------------*\
| Interface, Usage, and Usage Page |
\*-----------------------------------------------------*/
enum
{
WUSHI_PAGE = 0xFF63,
WUSHI_USAGE = 0x0C
};
void DetectWushiL50USBControllers(hidapi_wrapper wrapper, hid_device_info* info, const std::string& name)
{
hid_device* dev = wrapper.hid_open_path(info->path);