Commit Graph

5263 Commits

Author SHA1 Message Date
Dmitry Kychanov
055b937ff7 Fix device tabs not applying compact mode when hotplugging 2026-06-03 10:10:28 -05:00
Adam Honse
0a95989edb Close SDK connection if magic value is not correctly received 2026-06-03 10:10:28 -05:00
Adam Honse
ef3e48884d Implement size verification on RGBController set description functions 2026-06-03 10:10:28 -05:00
Adam Honse
0f637c30e5 Clean up zone initialization dialog 2026-06-03 10:10:28 -05:00
Adam Honse
82d40f2d97 Require local client permission for DeleteProfile, SaveProfile, UploadProfile, SetSettings, and SaveSettings operations, some general cleanup 2026-06-03 10:10:28 -05:00
Adam Honse
df6a498885 Sanitize profile filenames 2026-06-03 10:10:28 -05:00
Adam Honse
b252fe8629 Add RescanDevices to plugin API 2026-06-03 10:10:27 -05:00
Adam Honse
c837fa2b7e Implement segment groups in zone editor 2026-06-03 10:10:27 -05:00
Adam Honse
41749dce59 Rework server initialization
* Only create server instance if server is actually needed
    * Pass initial server host and port through ResourceManager
    * Allow setting default server host and port in Server settings
2026-06-03 10:10:27 -05:00
stephen iacovelli
08fbd285dc Sort profiles list alphabetically 2026-06-03 10:10:27 -05:00
Adam Honse
af7e3e150c Organize OpenRGBSettingsPage with Group Boxes 2026-06-03 10:10:27 -05:00
Kasslim
bb9a3e8730 Correct spelling Busses -> Buses
Commits merged by Adam Honse <calcprogrammer1@gmail.com>
2026-06-03 10:10:27 -05:00
诺诺
c69f7fdf57 Add Nollie controller OS2.1 2026-06-03 10:10:27 -05:00
Adam Honse
aba88f1fe2 Initial implementation of OpenRGB SDK protocol Wireshark dissector 2026-06-03 10:10:27 -05:00
Adam Honse
54a07077e1 Add ACK to network packets processed by NetworkServer 2026-06-03 10:10:27 -05:00
Adam Honse
0e288f3670 Only update device view when RGBController::UpdateLEDs signal is sent to OpenRGBDevicePage, fix device view not refreshing if multiple LEDs are selected 2026-06-03 10:10:27 -05:00
Adam Honse
cf990ece4e Don't emit selection update on mouse click event to avoid sending unnecessary events, also only send one type of event per mouse release event. Fix LED box not being updated 2026-06-03 10:10:27 -05:00
Adam Honse
ee52d2a7b0 Have dummy controller shut down its background thread immediately during constructor to save resources 2026-06-03 10:10:27 -05:00
Adam Honse
a884aca165 DeviceView code cleanup, formatting, commenting 2026-06-03 10:10:27 -05:00
Adam Honse
464a590865 Fix selecting LEDs in device view 2026-06-03 10:10:27 -05:00
Adam Honse
98767252e6 TabLabel sets its own tooltip so all tabs have a tooltip rather than just devices 2026-06-03 10:10:27 -05:00
Adam Honse
cbead40b32 Resize tabs when width is small 2026-06-03 10:10:27 -05:00
Adam Honse
b4be3b1a88 Rework adding segments with ConfigureZone 2026-06-03 10:10:27 -05:00
Adam Honse
67c2e53221 Zone and Segment type updates
* Add zone flags to indicate if fields are manually configurable and if they have been manually configured
  * Add flags field to segment type
  * Add segment flags for group start and group member
  * Add color mode support flags to zone (RGB, RBG, GRB, GBR, BRG, BGR)
  * Add color mode enum to zone
  * Update zone and segment description functions to support new fields
  * Rename the effects-only configurable size flag
  * Remove zone type and matrix map configuration from E1.31 manual configuration, use zone editor instead
  * Rework DeviceResizeZone to DeviceConfigureZone
  * Rework most ARGB controllers to allow zone customizations
  * Rework DRGBController to define devices in DRGBDevices list (similar to RazerDevices)
  * Rework NollieController to define devices in NollieDevices list (similar to RazerDevices)
2026-06-03 10:10:27 -05:00
Adam Honse
4b90142d84 Add matrix map automatic generation to matrix map editor 2026-06-03 10:10:27 -05:00
Adam Honse
e3408ee9d0 RGBController API changes and segment configuration updates
* Make the Get/Set RGBControler descriptor functions static
  * Add functions for getting the matrix_map_type for zone and segment matrix maps
  * Rename zone resize dialog to zone editor dialog
  * Add additional segment types
  * Add option to import segments configuration from JSON file in zone editor dialog
  * Update device view to be able to display matrix segment types
  * Add matrix map editor dialog for creating/editing segment matrix maps
  * Add option to export segments configuration to JSON file in zone editor dialog
2026-06-03 10:10:27 -05:00
Adam Honse
643bfa880f When updating existing profile without profile editor dialog, keep saved states for unavailable controllers, base color, and only update plugins already part of the existing profile 2026-06-03 10:10:27 -05:00
Adam Honse
f370eb79b4 When saving sizes/manual configuration, keep any existing controllers that are not currently available 2026-06-03 10:10:27 -05:00
Adam Honse
0e45370b76 Rework how manual configuration (previously sizes) are loaded to newly detected controllers, load active profile to newly detected controllers 2026-06-03 10:10:26 -05:00
Adam Honse
73ef9f5fb2 Profile editor dialog 2026-06-03 10:10:26 -05:00
Adam Honse
95512d56f1 Rework API interface passed into plugins from ResourceManagerInterface to OpenRGBPluginAPIInterface 2026-06-03 10:10:26 -05:00
Adam Honse
405869fefe [next] Active profile tracking 2026-06-03 10:10:26 -05:00
Adam Honse
526d0bd2ca Apply profiles server-side rather than client-side, signal active profile update, forward loaded profile to local client for plugins 2026-06-03 10:10:26 -05:00
Adam Honse
1b5a1aa561 Split HID and wrapped HID detector lists into specific detectors (with exact VID/PID matching) and generic detectors (with only IPU matching) and prioritize specific detectors when detecting HID devices 2026-06-03 10:10:26 -05:00
Adam Honse
8bafba65fd Move RGBController base destructor functionality into RGBController::Shutdown() so that update thread can be stopped before deleting the controller. Shutdown() must be called in every RGBController implementation before deleting the controller. Also some fixes to the NetworkServer to avoid deadlocking and disconnect issues 2026-06-03 10:10:26 -05:00
Adam Honse
b26e3f25fd Add detectors for filtering on IPU only (no VID/PID) 2026-06-03 10:10:26 -05:00
Adam Honse
9c8c57cc39 Drop support for old hidapi versions that don't support usage information 2026-06-03 10:10:26 -05:00
Adam Honse
d358f1d2da Add some validity checks to mode setters and getters in RGBController 2026-06-03 10:10:26 -05:00
Adam Honse
f4cd06df38 [next] SDK v6: Implement client and server flags to indicate capabilities and... 2026-06-03 10:10:26 -05:00
Adam Honse
15d2c30fa6 SDK documentation updates 2026-06-03 10:10:26 -05:00
Adam Honse
4f3eb52e18 Expose LogManager in ResourceManager so that plugins can use it 2026-06-03 10:10:26 -05:00
Adam Honse
4c52e4bfba Update NetworkClient to use log manager and use common name constant in server logs 2026-06-03 10:10:26 -05:00
Adam Honse
d586324885 Use std::string.assign when setting strings in the SDK protocol and description handlers so that string size limit is enforced, then strip out null terminators 2026-06-03 10:10:26 -05:00
Adam Honse
5dd0c18194 Add optional HID device hotplug support (requires https://gitlab.com/OpenRGBDevelopers/hidapi-hotplug) 2026-06-03 10:10:26 -05:00
Adam Honse
f6f3633ec0 SDK v6: Use unique IDs for identifying RGBControllers in SDK protocol 2026-06-03 10:10:26 -05:00
Adam Honse
985120903b Rework list handling in ResourceManager by having NetworkClient own its own list rather than sharing ResourceManager's list 2026-06-03 10:10:26 -05:00
Adam Honse
614f95a30a Move HID detector calls to RunHIDDetector/RunHIDWrappedDetector functions and return controller list from detector functions 2026-06-03 10:10:26 -05:00
Adam Honse
f732f57a4c Detection progress SDK integration, NetworkClient callback rework 2026-06-03 10:10:25 -05:00
Adam Honse
7b299d7d7f Split out detection system from ResourceManager into DetectionManager
* Split detection system out into its own class, DetectionManager
    * Clean up ResourceManger's many callbacks into just two, one for detection and one general purpose
2026-06-03 10:09:40 -05:00
Adam Honse
ab3edd6df5 SDK Version 6 Updates
* SDK Protocol
    * Server sends its name to client
    * ProfileManager
      * Rename existing profile commands
      * Add Upload Profile, Download Profile, and Get Active Profile commands
    * SettingsManager
      * Add Get, Set, and Save Settings commands
    * Add zone::active_mode, zone::mode fields for zone-specific modes
    * Add NET_PACKET_ID_RGBCONTROLLER_UPDATEZONEMODE packet for updating zone modes
    * Add segment::matrix_map to segment packet
    * Add NET_PACKET_ID_RGBCONTROLLER_SIGNALUPDATE packet for passing SignalUpdate signal from server to clients
  * NetworkServer
    * Formatting cleanup
    * Use per-controller threads for handling NetworkServer controller-specific packets to avoid delays from controller mutexes
  * NetworkClient
    * Formatting cleanup
  * RGBController
    * Clean up and modularize descriptor functions
2026-06-03 00:15:49 -05:00