Start updating file header comments to standardized new format
This commit is contained in:
parent
1ca946f3eb
commit
f38b7485f7
33 changed files with 357 additions and 241 deletions
|
|
@ -1,17 +1,20 @@
|
||||||
#include "AutoStart-FreeBSD.h"
|
/*---------------------------------------------------------*\
|
||||||
#include "LogManager.h"
|
| AutoStart-FreeBSD.cpp |
|
||||||
#include "filesystem.h"
|
| |
|
||||||
|
| Autostart implementation for FreeBSD |
|
||||||
|
| |
|
||||||
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
#include "AutoStart-FreeBSD.h"
|
||||||
/*-----------------------------------------------------*\
|
#include "LogManager.h"
|
||||||
| FreeBSD AutoStart Implementation |
|
#include "filesystem.h"
|
||||||
| Public Methods |
|
|
||||||
\*-----------------------------------------------------*/
|
|
||||||
|
|
||||||
AutoStart::AutoStart(std::string name)
|
AutoStart::AutoStart(std::string name)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,12 @@
|
||||||
|
/*---------------------------------------------------------*\
|
||||||
|
| AutoStart-FreeBSD.h |
|
||||||
|
| |
|
||||||
|
| Autostart implementation for FreeBSD |
|
||||||
|
| |
|
||||||
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,20 @@
|
||||||
#include "AutoStart-Linux.h"
|
/*---------------------------------------------------------*\
|
||||||
#include "LogManager.h"
|
| AutoStart-Linux.cpp |
|
||||||
#include "filesystem.h"
|
| |
|
||||||
|
| Autostart implementation for Linux |
|
||||||
|
| |
|
||||||
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <linux/limits.h>
|
#include <linux/limits.h>
|
||||||
|
#include "AutoStart-Linux.h"
|
||||||
/*-----------------------------------------------------*\
|
#include "LogManager.h"
|
||||||
| Linux AutoStart Implementation |
|
#include "filesystem.h"
|
||||||
| Public Methods |
|
|
||||||
\*-----------------------------------------------------*/
|
|
||||||
|
|
||||||
AutoStart::AutoStart(std::string name)
|
AutoStart::AutoStart(std::string name)
|
||||||
{
|
{
|
||||||
|
|
@ -122,7 +125,7 @@ std::string AutoStart::GetExePath()
|
||||||
char exepath[ PATH_MAX ];
|
char exepath[ PATH_MAX ];
|
||||||
|
|
||||||
ssize_t count = readlink("/proc/self/exe", exepath, PATH_MAX);
|
ssize_t count = readlink("/proc/self/exe", exepath, PATH_MAX);
|
||||||
|
|
||||||
return(std::string(exepath, (count > 0) ? count : 0));
|
return(std::string(exepath, (count > 0) ? count : 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -159,7 +162,7 @@ std::string AutoStart::GenerateDesktopFile(AutoStartInfo autostart_info)
|
||||||
}
|
}
|
||||||
|
|
||||||
fileContents << std::endl;
|
fileContents << std::endl;
|
||||||
|
|
||||||
return(fileContents.str());
|
return(fileContents.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -198,7 +201,7 @@ void AutoStart::InitAutoStart(std::string name)
|
||||||
std::error_code ec;
|
std::error_code ec;
|
||||||
|
|
||||||
bool success = true;
|
bool success = true;
|
||||||
|
|
||||||
if(!filesystem::exists(autostart_dir))
|
if(!filesystem::exists(autostart_dir))
|
||||||
{
|
{
|
||||||
success = filesystem::create_directories(autostart_dir, ec);
|
success = filesystem::create_directories(autostart_dir, ec);
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,12 @@
|
||||||
|
/*---------------------------------------------------------*\
|
||||||
|
| AutoStart-Linux.h |
|
||||||
|
| |
|
||||||
|
| Autostart implementation for Linux |
|
||||||
|
| |
|
||||||
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,20 @@
|
||||||
#include "AutoStart-MacOS.h"
|
/*---------------------------------------------------------*\
|
||||||
#include "LogManager.h"
|
| AutoStart-MacOS.cpp |
|
||||||
#include "filesystem.h"
|
| |
|
||||||
|
| Autostart implementation for MacOS |
|
||||||
|
| |
|
||||||
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <mach-o/dyld.h>
|
#include <mach-o/dyld.h>
|
||||||
|
#include "AutoStart-MacOS.h"
|
||||||
/*-----------------------------------------------------*\
|
#include "LogManager.h"
|
||||||
| MacOS AutoStart Implementation |
|
#include "filesystem.h"
|
||||||
| Public Methods |
|
|
||||||
\*-----------------------------------------------------*/
|
|
||||||
|
|
||||||
AutoStart::AutoStart(std::string name)
|
AutoStart::AutoStart(std::string name)
|
||||||
{
|
{
|
||||||
|
|
@ -152,7 +154,7 @@ std::string AutoStart::GenerateLaunchAgentFile(AutoStartInfo autostart_info)
|
||||||
fileContents << " <key>ProgramArguments</key>" << std::endl;
|
fileContents << " <key>ProgramArguments</key>" << std::endl;
|
||||||
fileContents << " <array>" << std::endl;
|
fileContents << " <array>" << std::endl;
|
||||||
fileContents << " <string>" << autostart_info.path << "</string>" << std::endl;
|
fileContents << " <string>" << autostart_info.path << "</string>" << std::endl;
|
||||||
|
|
||||||
if(autostart_info.args != "")
|
if(autostart_info.args != "")
|
||||||
{
|
{
|
||||||
std::istringstream arg_parser(autostart_info.args);
|
std::istringstream arg_parser(autostart_info.args);
|
||||||
|
|
@ -163,12 +165,12 @@ std::string AutoStart::GenerateLaunchAgentFile(AutoStartInfo autostart_info)
|
||||||
fileContents << " <string>" << arg << "</string>" << std::endl;
|
fileContents << " <string>" << arg << "</string>" << std::endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fileContents << " </array>" << std::endl;
|
fileContents << " </array>" << std::endl;
|
||||||
fileContents << " <key>RunAtLoad</key><true/>" << std::endl;
|
fileContents << " <key>RunAtLoad</key><true/>" << std::endl;
|
||||||
fileContents << "</dict>" << std::endl;
|
fileContents << "</dict>" << std::endl;
|
||||||
fileContents << "</plist>" << std::endl;
|
fileContents << "</plist>" << std::endl;
|
||||||
|
|
||||||
return(fileContents.str());
|
return(fileContents.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -193,7 +195,7 @@ void AutoStart::InitAutoStart(std::string name)
|
||||||
std::error_code ec;
|
std::error_code ec;
|
||||||
|
|
||||||
bool success = true;
|
bool success = true;
|
||||||
|
|
||||||
if(!filesystem::exists(autostart_dir))
|
if(!filesystem::exists(autostart_dir))
|
||||||
{
|
{
|
||||||
success = filesystem::create_directories(autostart_dir, ec);
|
success = filesystem::create_directories(autostart_dir, ec);
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,12 @@
|
||||||
|
/*---------------------------------------------------------*\
|
||||||
|
| AutoStart-MacOS.h |
|
||||||
|
| |
|
||||||
|
| Autostart implementation for MacOS |
|
||||||
|
| |
|
||||||
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,19 @@
|
||||||
#include "AutoStart-Windows.h"
|
/*---------------------------------------------------------*\
|
||||||
#include "LogManager.h"
|
| AutoStart-Windows.cpp |
|
||||||
#include "filesystem.h"
|
| |
|
||||||
|
| Autostart implementation for Windows |
|
||||||
|
| |
|
||||||
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#include "windows.h"
|
|
||||||
#include <shlobj.h>
|
#include <shlobj.h>
|
||||||
|
#include "AutoStart-Windows.h"
|
||||||
/*-----------------------------------------------------*\
|
#include "LogManager.h"
|
||||||
| Windows AutoStart Implementation |
|
#include "filesystem.h"
|
||||||
| Public Methods |
|
#include "windows.h"
|
||||||
\*-----------------------------------------------------*/
|
|
||||||
|
|
||||||
AutoStart::AutoStart(std::string name)
|
AutoStart::AutoStart(std::string name)
|
||||||
{
|
{
|
||||||
|
|
@ -41,7 +43,7 @@ bool AutoStart::DisableAutoStart()
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
success = filesystem::remove(autostart_file, autostart_file_remove_errcode);
|
success = filesystem::remove(autostart_file, autostart_file_remove_errcode);
|
||||||
|
|
||||||
if(!success)
|
if(!success)
|
||||||
{
|
{
|
||||||
LOG_ERROR("An error occurred removing the auto start file.");
|
LOG_ERROR("An error occurred removing the auto start file.");
|
||||||
|
|
@ -97,11 +99,11 @@ bool AutoStart::EnableAutoStart(AutoStartInfo autostart_info)
|
||||||
shellLink->SetArguments(argumentsw.c_str());
|
shellLink->SetArguments(argumentsw.c_str());
|
||||||
shellLink->SetDescription(descriptionw.c_str());
|
shellLink->SetDescription(descriptionw.c_str());
|
||||||
shellLink->SetIconLocation(iconw.c_str(), 0);
|
shellLink->SetIconLocation(iconw.c_str(), 0);
|
||||||
|
|
||||||
IPersistFile* persistFile;
|
IPersistFile* persistFile;
|
||||||
|
|
||||||
result = shellLink->QueryInterface(IID_IPersistFile, (void**)&persistFile);
|
result = shellLink->QueryInterface(IID_IPersistFile, (void**)&persistFile);
|
||||||
|
|
||||||
if(SUCCEEDED(result))
|
if(SUCCEEDED(result))
|
||||||
{
|
{
|
||||||
result = persistFile->Save(startupfilepathw.c_str(), TRUE);
|
result = persistFile->Save(startupfilepathw.c_str(), TRUE);
|
||||||
|
|
@ -151,7 +153,7 @@ std::string AutoStart::GetExePath()
|
||||||
char exepath[MAX_PATH] = "";
|
char exepath[MAX_PATH] = "";
|
||||||
|
|
||||||
DWORD count = GetModuleFileNameA(NULL, exepath, MAX_PATH);
|
DWORD count = GetModuleFileNameA(NULL, exepath, MAX_PATH);
|
||||||
|
|
||||||
return(std::string(exepath, (count > 0) ? count : 0));
|
return(std::string(exepath, (count > 0) ? count : 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -197,8 +199,8 @@ std::wstring AutoStart::utf8_decode(const std::string& str)
|
||||||
int size_needed = MultiByteToWideChar(CP_UTF8, 0, &str[0], (int) str.size(), nullptr, 0);
|
int size_needed = MultiByteToWideChar(CP_UTF8, 0, &str[0], (int) str.size(), nullptr, 0);
|
||||||
|
|
||||||
std::wstring wstrTo(size_needed, 0);
|
std::wstring wstrTo(size_needed, 0);
|
||||||
|
|
||||||
MultiByteToWideChar(CP_UTF8, 0, &str[0], (int) str.size(), &wstrTo[0], size_needed);
|
MultiByteToWideChar(CP_UTF8, 0, &str[0], (int) str.size(), &wstrTo[0], size_needed);
|
||||||
|
|
||||||
return(wstrTo);
|
return(wstrTo);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,12 @@
|
||||||
|
/*---------------------------------------------------------*\
|
||||||
|
| AutoStart-Windows.h |
|
||||||
|
| |
|
||||||
|
| Autostart implementation for Windows |
|
||||||
|
| |
|
||||||
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,13 @@
|
||||||
#include "AutoStart.h"
|
/*---------------------------------------------------------*\
|
||||||
|
| AutoStart.cpp |
|
||||||
|
| |
|
||||||
|
| Autostart common implementation |
|
||||||
|
| |
|
||||||
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
/*-----------------------------------------------------*\
|
#include "AutoStart.h"
|
||||||
| Common AutoStart Implementation |
|
|
||||||
| Public Methods |
|
|
||||||
\*-----------------------------------------------------*/
|
|
||||||
|
|
||||||
std::string AutoStartInterface::GetAutoStartFile()
|
std::string AutoStartInterface::GetAutoStartFile()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,12 @@
|
||||||
|
/*---------------------------------------------------------*\
|
||||||
|
| AutoStart.h |
|
||||||
|
| |
|
||||||
|
| Autostart common implementation |
|
||||||
|
| |
|
||||||
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,14 @@
|
||||||
/*-------------------------------------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| A4TechDetector.cpp |
|
| A4TechDetector.cpp |
|
||||||
| |
|
| |
|
||||||
| Driver for A4Tech Devices Detector |
|
| Detector for A4Tech Devices |
|
||||||
| |
|
| |
|
||||||
| Chris M (Dr_No) 30 Jun 2022 |
|
| Chris M (Dr_No) 30 Jun 2022 |
|
||||||
| Mohammed Julfikar Ali Mahbub (o-julfikar) 01 Apr 2024 |
|
| Mohammed Julfikar Ali Mahbub (o-julfikar) 01 Apr 2024 |
|
||||||
| |
|
| |
|
||||||
\*-------------------------------------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
/*-----------------------------------------------------*\
|
/*-----------------------------------------------------*\
|
||||||
| OpenRGB includes |
|
| OpenRGB includes |
|
||||||
|
|
@ -57,4 +59,4 @@ void DetectBloodyB820R(hid_device_info* info, const std::string& name)
|
||||||
REGISTER_HID_DETECTOR_IPU("Bloody W60 Pro", DetectA4TechMouseControllers, A4_TECH_VID, BLOODY_W60_PRO_PID, 2, 0xFF33, 0x0529);
|
REGISTER_HID_DETECTOR_IPU("Bloody W60 Pro", DetectA4TechMouseControllers, A4_TECH_VID, BLOODY_W60_PRO_PID, 2, 0xFF33, 0x0529);
|
||||||
REGISTER_HID_DETECTOR_IPU("Bloody W90 Max", DetectA4TechMouseControllers, A4_TECH_VID, BLOODY_W90_MAX_PID, 2, 0xFF33, 0x053D);
|
REGISTER_HID_DETECTOR_IPU("Bloody W90 Max", DetectA4TechMouseControllers, A4_TECH_VID, BLOODY_W90_MAX_PID, 2, 0xFF33, 0x053D);
|
||||||
REGISTER_HID_DETECTOR_IPU("Bloody MP 50RS", DetectA4TechMouseControllers, A4_TECH_VID, BLOODY_MP_50RS_PID, 2, 0xFFF2, 0x6009);
|
REGISTER_HID_DETECTOR_IPU("Bloody MP 50RS", DetectA4TechMouseControllers, A4_TECH_VID, BLOODY_MP_50RS_PID, 2, 0xFFF2, 0x6009);
|
||||||
REGISTER_HID_DETECTOR_IPU("A4Tech Bloody B820R", DetectBloodyB820R, A4_TECH_VID, BLOODY_B820R_PID, 2, 0xFF52, 0x0210);
|
REGISTER_HID_DETECTOR_IPU("A4Tech Bloody B820R", DetectBloodyB820R, A4_TECH_VID, BLOODY_B820R_PID, 2, 0xFF52, 0x0210);
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,23 @@
|
||||||
/*-------------------------------------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| BloodyB820RController.cpp |
|
| BloodyB820RController.cpp |
|
||||||
| |
|
| |
|
||||||
| Driver for A4Tech Bloody B820R Keyboard Controller |
|
| Driver for A4Tech Bloody B820R Keyboard |
|
||||||
| |
|
| |
|
||||||
| Mohammed Julfikar Ali Mahbub (o-julfikar) 01 Apr 2024 |
|
| Mohammed Julfikar Ali Mahbub (o-julfikar) 01 Apr 2024 |
|
||||||
| |
|
| |
|
||||||
\*-------------------------------------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include "BloodyB820RController.h"
|
#include "BloodyB820RController.h"
|
||||||
|
|
||||||
/*--------------------------------------------------------------------------------------*\
|
/*-------------------------------------------------------------------------------------*\
|
||||||
* The controller for this device should pass a packet of 64 bytes where the subsequent *
|
| The controller for this device should pass a packet of 64 bytes where the subsequent |
|
||||||
* two packets are for RED, GREEN, and BLUE respectively. The first 6 bytes are control *
|
| two packets are for RED, GREEN, and BLUE respectively. The first 6 bytes are control |
|
||||||
* or information bytes and colors bytes starts from index 6. Moreover, the first pack- *
|
| or information bytes and colors bytes starts from index 6. Moreover, the first pack- |
|
||||||
* et of each RGB contains color for 58 keys and the rest (104 - 58 == 46) are send on *
|
| et of each RGB contains color for 58 keys and the rest (104 - 58 == 46) are send on |
|
||||||
* the second packet. *
|
| the second packet. |
|
||||||
\*--------------------------------------------------------------------------------------*/
|
\*-------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
BloodyB820RController::BloodyB820RController(hid_device* dev_handle, const char* path)
|
BloodyB820RController::BloodyB820RController(hid_device* dev_handle, const char* path)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
/*-------------------------------------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| BloodyB820RController.h |
|
| BloodyB820RController.h |
|
||||||
| |
|
| |
|
||||||
| Driver for A4Tech Bloody B820R Keyboard Controller |
|
| Driver for A4Tech Bloody B820R Keyboard |
|
||||||
| |
|
| |
|
||||||
| Mohammed Julfikar Ali Mahbub (o-julfikar) 01 Apr 2024 |
|
| Mohammed Julfikar Ali Mahbub (o-julfikar) 01 Apr 2024 |
|
||||||
| |
|
| |
|
||||||
\*-------------------------------------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
|
@ -25,9 +27,9 @@
|
||||||
#define BLOODY_B820R_RELEASE_CONTROL 0x00
|
#define BLOODY_B820R_RELEASE_CONTROL 0x00
|
||||||
|
|
||||||
/*---------------------------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| Bloody B820R product ID |
|
| Bloody B820R product ID |
|
||||||
\*---------------------------------------------------------*/
|
\*---------------------------------------------------------*/
|
||||||
#define BLOODY_B820R_PID 0xFA10
|
#define BLOODY_B820R_PID 0xFA10
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
/*-------------------------------------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| RGBController_BloodyB820R.cpp |
|
| RGBController_BloodyB820R.cpp |
|
||||||
| |
|
| |
|
||||||
| Driver for A4Tech Bloody B820R Keyboard Controller |
|
| RGBController for A4Tech Bloody B820R Keyboard |
|
||||||
| |
|
| |
|
||||||
| Mohammed Julfikar Ali Mahbub (o-julfikar) 01 Apr 2024 |
|
| Mohammed Julfikar Ali Mahbub (o-julfikar) 01 Apr 2024 |
|
||||||
| |
|
| |
|
||||||
\*-------------------------------------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include "RGBControllerKeyNames.h"
|
#include "RGBControllerKeyNames.h"
|
||||||
#include "RGBController_BloodyB820R.h"
|
#include "RGBController_BloodyB820R.h"
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
/*-------------------------------------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| RGBController_BloodyB820R.h |
|
| RGBController_BloodyB820R.h |
|
||||||
| |
|
| |
|
||||||
| Driver for A4Tech Bloody B820R Keyboard Controller |
|
| RGBController for A4Tech Bloody B820R Keyboard |
|
||||||
| |
|
| |
|
||||||
| Mohammed Julfikar Ali Mahbub (o-julfikar) 01 Apr 2024 |
|
| Mohammed Julfikar Ali Mahbub (o-julfikar) 01 Apr 2024 |
|
||||||
| |
|
| |
|
||||||
\*-------------------------------------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
/*---------------------------------------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| BloodyMouseController.cpp |
|
| BloodyMouseController.cpp |
|
||||||
| |
|
| |
|
||||||
| Driver for BloodyMouse USB Controller |
|
| Driver for A4Tech Bloody Mouse |
|
||||||
| |
|
| |
|
||||||
| Chris M (Dr_No) 30 Jun 2022 |
|
| Chris M (Dr_No) 30 Jun 2022 |
|
||||||
| |
|
| |
|
||||||
\*---------------------------------------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include "BloodyMouseController.h"
|
#include "BloodyMouseController.h"
|
||||||
#include "LogManager.h"
|
#include "LogManager.h"
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
/*---------------------------------------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| BloodyMouseController.h |
|
| BloodyMouseController.h |
|
||||||
| |
|
| |
|
||||||
| Driver for BloodyMouse USB Controller |
|
| Driver for A4Tech Bloody Mouse |
|
||||||
| |
|
| |
|
||||||
| Chris M (Dr_No) 30 Jun 2022 |
|
| Chris M (Dr_No) 30 Jun 2022 |
|
||||||
| |
|
| |
|
||||||
\*---------------------------------------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
/*---------------------------------------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| RGBController_BloodyMouse.cpp |
|
| RGBController_BloodyMouse.cpp |
|
||||||
| |
|
| |
|
||||||
| Driver for BloodyMouse USB Controller |
|
| RGBController for A4Tech Bloody Mouse |
|
||||||
| |
|
| |
|
||||||
| Chris M (Dr_No) 30 Jun 2022 |
|
| Chris M (Dr_No) 30 Jun 2022 |
|
||||||
| |
|
| |
|
||||||
\*---------------------------------------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include "RGBController_BloodyMouse.h"
|
#include "RGBController_BloodyMouse.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
/*---------------------------------------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| RGBController_BloodyMouse.h |
|
| RGBController_BloodyMouse.h |
|
||||||
| |
|
| |
|
||||||
| Driver for BloodyMouse USB Controller |
|
| RGBController for A4Tech Bloody Mouse |
|
||||||
| |
|
| |
|
||||||
| Chris M (Dr_No) 30 Jun 2022 |
|
| Chris M (Dr_No) 30 Jun 2022 |
|
||||||
| |
|
| |
|
||||||
\*---------------------------------------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,13 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| AlienwareController.cpp |
|
| AlienwareController.cpp |
|
||||||
| |
|
| |
|
||||||
| Driver for Alienware lighting controller |
|
| Driver for Dell Alienware RGB USB controller |
|
||||||
| |
|
| |
|
||||||
| Gabriel Marcano (gemarcano) 4/21/2021 |
|
| Gabriel Marcano (gemarcano) 21 Apr 2021 |
|
||||||
\*-----------------------------------------*/
|
| |
|
||||||
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| AlienwareController.h |
|
| AlienwareController.h |
|
||||||
| |
|
| |
|
||||||
| Driver for Dell Alienware RGB USB |
|
| Driver for Dell Alienware RGB USB controller |
|
||||||
| controller |
|
| |
|
||||||
| |
|
| Gabriel Marcano (gemarcano) 19 Apr 2021 |
|
||||||
| Gabriel Marcano (gemarcano) 4/19/2021 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,12 @@
|
||||||
|
/*---------------------------------------------------------*\
|
||||||
|
| AlienwareControllerDetect.cpp |
|
||||||
|
| |
|
||||||
|
| Detector for Dell Alienware RGB USB controller |
|
||||||
|
| |
|
||||||
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include "Detector.h"
|
#include "Detector.h"
|
||||||
#include "AlienwareController.h"
|
#include "AlienwareController.h"
|
||||||
#include "RGBController.h"
|
#include "RGBController.h"
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| RGBController_Alienware.cpp |
|
| RGBController_Alienware.cpp |
|
||||||
| |
|
| |
|
||||||
| Generic RGB Interface for OpenRGB |
|
| RGBController for Dell Alienware RGB USB controller |
|
||||||
| Alienware USB Driver |
|
| |
|
||||||
| |
|
| Gabriel Marcano (gemarcano) 19 Apr 2021 |
|
||||||
| Gabriel Marcano (gemarcano) 4/19/2021 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| RGBController_Alienware.h |
|
| RGBController_Alienware.h |
|
||||||
| |
|
| |
|
||||||
| Generic RGB Interface for OpenRGB |
|
| RGBController for Dell Alienware RGB USB controller |
|
||||||
| Alienware RGB USB Driver |
|
| |
|
||||||
| |
|
| Gabriel Marcano (gemarcano) 19 Apr 2021 |
|
||||||
| Gabriel Marcano (gemarcano) 4/19/2021 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,14 @@
|
||||||
/*------------------------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| AlienwareAW410KController.cpp |
|
| AlienwareAW410KController.cpp |
|
||||||
| |
|
| |
|
||||||
| Driver for Alienware AW410K |
|
| Driver for Alienware AW410K keyboard |
|
||||||
| keyboard light controller |
|
| |
|
||||||
| |
|
| based on AW510K controller by Mohamad Sallal (msallal) |
|
||||||
| based on AW510K controller by Mohamad Sallal - msallal|
|
| Dominik Mikolajczyk (dmiko) 23 Oct 2023 |
|
||||||
| |
|
| |
|
||||||
| Dominik Mikolajczyk - dmiko 23/10/2023 |
|
| This file is part of the OpenRGB project |
|
||||||
\*------------------------------------------------------*/
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include "AlienwareAW410KController.h"
|
#include "AlienwareAW410KController.h"
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,14 @@
|
||||||
/*------------------------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| AlienwareAW410KController.h |
|
| AlienwareAW410KController.h |
|
||||||
| |
|
| |
|
||||||
| Definitions and types for alienware |
|
| Driver for Alienware AW410K keyboard |
|
||||||
| AW410K Keyboard |
|
| |
|
||||||
| |
|
| based on AW510K controller by Mohamad Sallal (msallal) |
|
||||||
| based on AW510K controller by Mohamad Sallal - msallal|
|
| Dominik Mikolajczyk (dmiko) 23 Oct 2023 |
|
||||||
| |
|
| |
|
||||||
| Dominik Mikolajczyk - dmiko 23/10/2023 |
|
| This file is part of the OpenRGB project |
|
||||||
\*------------------------------------------------------*/
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,14 @@
|
||||||
/*------------------------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| RGBController_AlienwareAW410K.cpp |
|
| RGBController_AlienwareAW410K.cpp |
|
||||||
| |
|
| |
|
||||||
| Generic RGB Interface for alienware |
|
| RGBController for Alienware AW410K keyboard |
|
||||||
| AW410K Keyboard |
|
| |
|
||||||
| |
|
| based on AW510K controller by Mohamad Sallal (msallal) |
|
||||||
| based on AW510K controller by Mohamad Sallal - msallal|
|
| Dominik Mikolajczyk (dmiko) 23 Oct 2023 |
|
||||||
| |
|
| |
|
||||||
| Dominik Mikolajczyk - dmiko 23/10/2023 |
|
| This file is part of the OpenRGB project |
|
||||||
\*------------------------------------------------------*/
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
#include "RGBControllerKeyNames.h"
|
#include "RGBControllerKeyNames.h"
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,14 @@
|
||||||
/*------------------------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| RGBController_AlienwareAW410K.h |
|
| RGBController_AlienwareAW410K.h |
|
||||||
| |
|
| |
|
||||||
| Generic RGB Interface for Alienware |
|
| RGBController for Alienware AW410K keyboard |
|
||||||
| AW410K keyboard |
|
| |
|
||||||
| |
|
| based on AW510K controller by Mohamad Sallal (msallal) |
|
||||||
| based on AW510K controller by Mohamad Sallal - msallal|
|
| Dominik Mikolajczyk (dmiko) 23 Oct 2023 |
|
||||||
| |
|
| |
|
||||||
| Dominik Mikolajczyk - dmiko 23/10/2023 |
|
| This file is part of the OpenRGB project |
|
||||||
\*------------------------------------------------------*/
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| AlienwareAW510KController.cpp |
|
| AlienwareAW510KController.cpp |
|
||||||
| |
|
| |
|
||||||
| Driver for Alienware AW510K |
|
| Driver for Alienware AW510K keyboard |
|
||||||
| keyboard light controller |
|
| |
|
||||||
| |
|
| Mohamad Sallal (msallal) 22 May 2021 |
|
||||||
| Mohamad Sallal - msallal 05/22/2021 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include "AlienwareAW510KController.h"
|
#include "AlienwareAW510KController.h"
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| AlienwareAW510KController.h |
|
| AlienwareAW510KController.h |
|
||||||
| |
|
| |
|
||||||
| Definitions and types for alienware |
|
| Driver for Alienware AW510K keyboard |
|
||||||
| AW510K Keyboard |
|
| |
|
||||||
| |
|
| Mohamad Sallal (msallal) 22 May 2021 |
|
||||||
| Mohamad Sallal - msallal 05/22/2021 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| RGBController_AlienwareAW510K.cpp |
|
| RGBController_AlienwareAW510K.cpp |
|
||||||
| |
|
| |
|
||||||
| Generic RGB Interface for alienware |
|
| RGBController for Alienware AW510K keyboard |
|
||||||
| AW510K Keyboard |
|
| |
|
||||||
| |
|
| Mohamad Sallal (msallal) 22 May 2021 |
|
||||||
| Mohamad Sallal - msallal 05/22/2021 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
#include "RGBControllerKeyNames.h"
|
#include "RGBControllerKeyNames.h"
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| RGBController_AlienwareAW510K.h |
|
| RGBController_AlienwareAW510K.h |
|
||||||
| |
|
| |
|
||||||
| Generic RGB Interface for Alienware |
|
| RGBController for Alienware AW510K keyboard |
|
||||||
| AW510K keyboard |
|
| |
|
||||||
| |
|
| Mohamad Sallal (msallal) 22 May 2021 |
|
||||||
| Mohamad Sallal - msallal 05/22/2021 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
|
@ -21,7 +23,7 @@ public:
|
||||||
void SetupZones();
|
void SetupZones();
|
||||||
|
|
||||||
void ResizeZone(int zone, int new_size);
|
void ResizeZone(int zone, int new_size);
|
||||||
|
|
||||||
void DeviceUpdateLEDs();
|
void DeviceUpdateLEDs();
|
||||||
void UpdateZoneLEDs(int zone);
|
void UpdateZoneLEDs(int zone);
|
||||||
void UpdateSingleLED(int led);
|
void UpdateSingleLED(int led);
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,12 @@
|
||||||
|
/*---------------------------------------------------------*\
|
||||||
|
| AlienwareKeyboardControllerDetect.cpp |
|
||||||
|
| |
|
||||||
|
| Detector for Alienware Keyboard |
|
||||||
|
| |
|
||||||
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include <hidapi/hidapi.h>
|
#include <hidapi/hidapi.h>
|
||||||
#include "Detector.h"
|
#include "Detector.h"
|
||||||
#include "AlienwareAW510KController.h"
|
#include "AlienwareAW510KController.h"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue