k1-801
ad2cd89128
Add filesystem header to select between std::filesystem and std::experimental::filesystem depending on system availability.
...
Commit amended by Adam Honse <calcprogrammer1@gmail.com >
2021-04-25 22:55:49 -05:00
morg
2a6b457324
Add UnregisterRGBController method to ResourceManager
...
Commit amended by Adam Honse <calcprogrammer1@gmail.com >
2021-04-20 09:21:24 -05:00
Adam Honse
b148bbe740
Initialize OpenRazer/OpenRazer-Win32 controller to disabled if not present in settings
2021-04-09 22:20:07 -05:00
Adam Honse
276c7e66e9
Update the detector settings list before running the detectors, so that the list is populated even if a detector crashes
2021-04-09 18:28:37 -05:00
Chris
067aa4d88a
Adding logging notices to ResourceManager to track explicit hid_init() and hid_exit()
2021-03-28 01:03:42 -05:00
k1-801
1fdd4379a7
Small adjustments in LogManager
2021-03-24 11:39:26 -05:00
Adam Honse
69cb7a0d9e
Use resource manager to register I2C interfaces and log them
2021-03-24 01:22:48 -05:00
Adam Honse
ec90f4678b
Change all I2C/SMBus detectors to use RegisterRGBController
2021-03-23 20:41:50 -05:00
k1-801
f1d6c2953d
Logger tweaks
...
Commit amended for code style and minor cleanup by Adam Honse <calcprogrammer1@gmail.com >
2021-03-23 20:20:52 -05:00
k1-801
ca11939277
Add LogManager and add log messages for the detection process
...
Commit amended for code style and to remove unrelated changes by Adam Honse <calcprogrammer1@gmail.com >
2021-03-05 14:57:53 -06:00
Adam Honse
fdab8a2066
Ignore interface check for non-safe-mode as well
2021-03-02 20:23:49 -06:00
Adam Honse
c3c4b3a8eb
Ignore interface check if usage page or usage is checked
2021-03-02 19:22:47 -06:00
jath03
84861ef989
Fixing profile loading #1135
2021-02-26 08:17:44 -06:00
silas
93231c3225
Initial commit for Plugins
...
Commits squashed, code style and naming changes by Adam Honse <calcprogrammer1@gmail.com >
2021-01-05 20:07:13 -06:00
Adam Honse
c20ecbffe5
Revert changes to ResourceManager.cpp
2021-01-01 18:28:33 -06:00
Chris
215baa487a
Corrected Logical errors in ResourceManager.cpp
...
* Removed comparison of -1 to unsigned int
* Corrected comparison of current_device to HID_INTERFACE_ANY
* Exposed downstream errors in Windows implementation of CM_MP750
controller corrected
* Added "Off" mode
2021-01-01 16:52:27 -06:00
Adam Honse
0fd302b7d1
Reload sizes when changing configuration directory
2020-12-09 12:24:05 -06:00
Adam Honse
a2e74eb788
Disable detection when started in local client mode
2020-12-06 21:08:47 -06:00
Adam Honse
f70c9cc63e
Remove Setting_ prefix from all settings keys
2020-12-03 12:02:15 -06:00
Adam Honse
61d4b8fa5d
More size loading fixes
2020-12-03 01:03:44 -06:00
Adam Honse
49fda962be
Load sizes for HID devices after detection
2020-12-03 00:37:04 -06:00
Adam Honse
3f7c981ba2
Use up-to-date controller list in profile manager
2020-12-02 21:53:14 -06:00
Adam Honse
3345fe6562
Fix I2C tools by adding I2C bus list change callback to resource manager
2020-12-02 00:08:15 -06:00
Adam Honse
ddfcd1caf9
Split CLI processing into pre- and post-detection functions and add --localconfig and --nodetect options
2020-12-01 23:51:56 -06:00
Adam Honse
049441a4f5
Add USB HID safe mode (enumerates only enabled devices), enable in detector settings by setting hid_safe_mode to true
2020-11-30 12:23:13 -06:00
k1-801
dc2b41a0e2
Massive HID detectors update
...
Commit amended to undo change to device list management, still working through that merge request. Want to work this one in first. Changes by Adam Honse <calcprogrammer1@gmail.com >
2020-11-25 02:17:18 -06:00
Adam Honse
100678f85b
Rework device enabling - fill in detectors list with detector names, default to true. Setting them to false disables the detectors
2020-11-10 17:57:56 -06:00
Adam Honse
49365b3d98
Fall back to HOME if XDG_CONFIG_HOME doesn't exist
2020-11-10 15:49:56 -06:00
Adam Honse
c8e547343b
Fix issues with empty json and unknown path
2020-11-10 15:49:56 -06:00
Adam Honse
8131b94a5d
Create configuration directory if it doesn't exist
2020-11-10 15:49:56 -06:00
Adam Honse
f7d187f5b2
Use XDG-compliant configuration directory (APPDATA on Windows)
2020-11-10 15:49:56 -06:00
Adam Honse
64b592c9bd
Rework Disabled Devices list to use Settings Manager
2020-11-10 15:49:56 -06:00
Adam Honse
5b68efd09f
Initial prototype of settings manager loads JSON settings file and E1.31 detector uses JSON data to detect devices
2020-11-10 15:49:55 -06:00
Adam Honse
e52619dbab
Move Profile Manager to Resource Manager and rework size loading so that sizes are updated upon redetection
2020-10-08 17:07:39 -05:00
Adam Honse
24de16f77b
Keep a separate list of controllers detected from hardware and dynamically add/remove them from the master list when redetecting so client controllers aren't deleted during redetection
2020-10-06 21:20:08 -05:00
Adam Honse
fde002707a
Clear the controller list before deleting the controller objects, same for i2c busses
2020-09-30 21:50:26 -05:00
Adam Honse
8ead2f9c73
Call the callbacks when redetection starts, move matrix map deletion to individual controllers to avoid attempting to delete const pointers
2020-09-28 23:22:01 -05:00
Adam Honse
4f43e85139
Don't call the server's device list update function when updating detection progress
2020-09-29 01:38:20 +00:00
Adam Honse
c30480af91
Add detection progress callback to avoid unnecessary device list updates
2020-09-28 19:11:47 -05:00
Adam Honse
60fd721586
Server sends a request to the client when the device list is updated
2020-09-27 22:12:34 +00:00
Adam Honse
55bf28d4c3
Clean up some more reference passing related to server and clients and use the Resource Manager instead
2020-09-22 12:37:41 -05:00
Adam Honse
128bfc7792
Move network clients to Resource Manager
2020-09-22 12:17:54 -05:00
Adam Honse
c1ac870035
Move network server to resource manager
2020-09-21 00:34:41 -05:00
Adam Honse
8823e28fa0
Call update device list callback after detection is finished
2020-09-06 02:29:22 -05:00
k1-801
ec77c658f2
Rudimentary rescanning implemented but button for it not added due to SDK conflicts. Stop detection button.
...
Commit amended by Adam Honse <calcprogrammer1@gmail.com >
2020-09-06 01:37:16 -05:00
Adam Honse
f568253c51
Clean up more warnings
2020-09-02 18:25:58 -05:00
Adam Honse
4e95bc55d8
Add the ability to disable device detection using a text file
2020-08-26 19:44:24 -05:00
Térence Clastres
6c52e3ce11
Fix hang when deleting busses
2020-08-13 00:05:29 -05:00
Térence Clastres
53379c5482
Fixes for memory issues detected by valgrind
2020-08-12 23:48:03 -05:00
Adam Honse
634ec9f488
Wait on asynchronous device detection before performing CLI operations that require device list
2020-08-07 23:01:20 -05:00