Add new Controller Nollie16

This commit is contained in:
诺诺
2023-11-16 17:25:41 +00:00
committed by Adam Honse
parent 999bb03a45
commit 68a3cc43d9
5 changed files with 39 additions and 16 deletions

View File

@@ -11,14 +11,11 @@
using namespace std::chrono_literals;
NollieController::NollieController(hid_device* dev_handle, const char* path, unsigned short /*pid*/)
NollieController::NollieController(hid_device* dev_handle, const char* path, unsigned short pid)
{
dev = dev_handle;
location = path;
/*-----------------------------------------------------*\
| PID may be used in the future, here is to pass |
| arguments not to do storage |
\*-----------------------------------------------------*/
dev = dev_handle;
location = path;
usb_pid = pid;
}
std::string NollieController::GetLocationString()
@@ -42,6 +39,11 @@ std::string NollieController::GetSerialString()
return(return_string);
}
unsigned short NollieController::GetUSBPID()
{
return(usb_pid);
}
void NollieController::SetMos(bool mos)
{
unsigned char usb_buf[65];