diff --git a/README.md b/README.md index b4d8cc6..56f095b 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,10 @@ This repository is dedicated for a `cuesdk` package on [PyPI](https://pypi.org/p `cuesdk` can be used on the following platforms: -- Windows 7 (32-bit and 64-bit); -- Windows 8, 8.1 (32-bit and 64-bit); -- Windows 10 (32-bit and 64-bit); -- Windows 11 (32-bit and 64-bit); +- Windows 7 (x64); +- Windows 8, 8.1 (x64); +- Windows 10 (x64); +- Windows 11 (x64); - macOS 10.13; - macOS 10.14; - macOS 10.15; @@ -31,7 +31,6 @@ This repository is dedicated for a `cuesdk` package on [PyPI](https://pypi.org/p - [iCUE for Windows](https://www.corsair.com/icue) - Microsoft Visual C++ Redistributable for Visual Studio 2019. - - x86 - x64 ### macOS diff --git a/src/cuesdk/api.py b/src/cuesdk/api.py index ed1f840..feb6f48 100644 --- a/src/cuesdk/api.py +++ b/src/cuesdk/api.py @@ -31,8 +31,7 @@ def get_library_path(lib_name): def get_library_path_windows(): - suffix = '.x64' if sizeof(c_void_p) == 8 else '' - lib_name = 'iCUESDK' + suffix + '_2019.dll' + lib_name = 'iCUESDK.x64_2019.dll' return get_library_path(lib_name) @@ -73,6 +72,8 @@ def __exit__(self, type, value, traceback): def connect( self, on_state_changed: Callable[[CorsairSessionStateChanged], None] ) -> CorsairError: + if sizeof(c_void_p) < 8: + return CorsairError(CorsairError.CE_NotAllowed) if on_state_changed is None: return CorsairError(CorsairError.CE_InvalidArguments) diff --git a/src/cuesdk/bin/iCUESDK.x64_2019.dll b/src/cuesdk/bin/iCUESDK.x64_2019.dll index 11fe61b..62cd2cc 100644 Binary files a/src/cuesdk/bin/iCUESDK.x64_2019.dll and b/src/cuesdk/bin/iCUESDK.x64_2019.dll differ diff --git a/src/cuesdk/bin/iCUESDK_2019.dll b/src/cuesdk/bin/iCUESDK_2019.dll deleted file mode 100644 index 0e064a9..0000000 Binary files a/src/cuesdk/bin/iCUESDK_2019.dll and /dev/null differ diff --git a/src/cuesdk/bin/libiCUESDK.dylib b/src/cuesdk/bin/libiCUESDK.dylib index 077d422..f79f0be 100644 Binary files a/src/cuesdk/bin/libiCUESDK.dylib and b/src/cuesdk/bin/libiCUESDK.dylib differ diff --git a/src/cuesdk/enums.py b/src/cuesdk/enums.py index 9f3343e..70d82b3 100644 --- a/src/cuesdk/enums.py +++ b/src/cuesdk/enums.py @@ -95,6 +95,7 @@ class CorsairDeviceType(Enumeration): CDT_Motherboard = 0x0200 CDT_GraphicsCard = 0x0400 CDT_Touchbar = 0x0800 + CDT_GameController = 0x1000 CDT_All = 0xFFFFFFFF @@ -183,6 +184,7 @@ class CorsairChannelDeviceType(Enumeration): CCDT_Pump = 9 CCDT_DRAM = 10 CCDT_WaterBlock = 11 + CCDT_QX_Fan = 12 class CorsairAccessLevel(Enumeration): @@ -208,6 +210,7 @@ class CorsairLedGroup(Enumeration): CLG_DIY_Channel2 = 12 CLG_DIY_Channel3 = 13 CLG_Touchbar = 14 + CLG_GameController = 15 class CorsairLedId_Keyboard(Enumeration): diff --git a/src/cuesdk/version.py b/src/cuesdk/version.py index c7a18d1..d66d744 100644 --- a/src/cuesdk/version.py +++ b/src/cuesdk/version.py @@ -1 +1 @@ -__version__ = "4.0.3" +__version__ = "4.0.84"