1
0
mirror of https://github.com/MatMoul/g810-led.git synced 2024-12-23 17:26:11 +00:00
Commit Graph

262 Commits

Author SHA1 Message Date
Kevin Pearson
114fa9b703 Augment command arg parsing to set specific device
Change argument parsing to segregate options from the command

Add -dv -dp and -ds options to allow matching a vendor ID, device ID,
and/or device serial number.

Modify --list-keyboards to parse the DeviceInfo vector and output
information to stdout.

Signed-off-by: Kevin Pearson <pearson.kevin.m@gmail.com>
2017-04-28 16:18:37 -04:00
Kevin Pearson
53876ac54e Add utility to convert string to uint16_t
Purpose for this is for command argument parsing of vendor and product
IDs

Signed-off-by: Kevin Pearson <pearson.kevin.m@gmail.com>
2017-04-28 16:18:37 -04:00
Kevin Pearson
4b2a1002e8 Add support for opening a specific device
Allow filtration and matching of specified Device ID, Product ID, Serial
Number

Fix an issue in listKeyboards (hidapi) with an out of bounds search when
using serial number

Fix possible null reference problem in listKeyboards (hidapi) that
caused rare segfaults when traversing the device enumeration in
increments of two

Fix handling of output of listKeyboards (hidapi) where it was
incrementing the dev list pointer, then accessing the node to look for
device serial number (potential security risk)

Fix handling of serial number output of listKeyboards (hidapi) to handle
wchar_t instead of outputting the memory address

Fix issue in listKeyboards (libusb) failure to finish cleaning up USB
contexts, leading to a segfault if calling a separate function after
listing keyboards.

Fix issue in close (libusb) segfaulting if m_hidHandle was null, so
added a check.

Modify listKeyboards to provide a vector of DeviceInfo objects that can
be used by calling applications instead of outputting to stdout directly.

Implement a struct to hold information regarding device information and
ability for a library caller to query this information to make decisions
about the currently targeted device.

Signed-off-by: Kevin Pearson <pearson.kevin.m@gmail.com>
2017-04-28 16:18:37 -04:00
ca1ecadf98 Move wireshark dump to g810-led-wireshark project 2017-04-22 01:07:05 +02:00
b4d96ffa15 Version 0.2.0 2017-04-21 23:08:03 +02:00
bc8fa498f3 remove kdev4 files 2017-04-21 23:07:09 +02:00
26e283bbe7 Finalization of g213 support 2017-04-21 23:06:36 +02:00
539f2e9fba Finalization of g213 support 2017-04-21 23:04:50 +02:00
9ae812b88e Finalization of g213 support 2017-04-21 23:00:21 +02:00
Kevin Pearson
793aa0d557 Initial work to add G213 support
Currently supported:
- G213 by region {1..5}
- Standard FX calls
- Startup behavior
- Help and command-line app support

resolves MatMoul/g810-led#69

Signed-off-by: Kevin Pearson <pearson.kevin.m@gmail.com>
2017-04-20 21:26:48 -04:00
1f0458ea4f Version 0.1.9 2017-04-14 03:08:51 +02:00
9d23cb4e23 Update makerelease 2017-04-14 03:08:04 +02:00
0e952273c0 Version 0.1.8 2017-04-14 03:06:24 +02:00
cb24ce8909 Update udev and remove systemd start service 2017-04-14 03:05:50 +02:00
c986c7e2a9 Update make file 2017-04-14 02:45:14 +02:00
468b133cf0 Version 0.1.7 2017-04-14 02:42:55 +02:00
9465e7638f Update makerelease 2017-04-14 02:40:33 +02:00
12f50a5fda Add kdev4 file 2017-04-14 02:10:13 +02:00
f22fa6dcb8 Merge branch 'BuildLibrary' of https://github.com/pearsonk/g810-led into pearsonk-BuildLibrary 2017-04-10 22:25:22 +02:00
Kevin Pearson
e5193b5985 Implement device IO as a shared library
Provide make targets and build configuration to create a shared object
for other systems/applications to use to control keyboard LEDs without
 the need for instantiating the g810-led process.

Provide make targets for installing library and development files into
environments, such as the current system or package builders.

Currently preserves precious behavior of building g810-led binary as
statically linked. Provides an alternative build target of "bin-linked"
which will create a dynamically linked variant.

Signed-off-by: Kevin Pearson <pearson.kevin.m@gmail.com>
2017-04-10 16:07:08 -04:00
6d2b681cce Merge branch 'pearsonk-master' into spellingvar 2017-04-06 21:07:52 +02:00
Kevin Pearson
d69ce2855f Fix spelling of SupportedKeyboards
Signed-off-by: Kevin Pearson <pearson.kevin.m@gmail.com>
2017-04-06 09:43:37 -04:00
a4b4cae4ef Merge pull request #61 from da2x/patch-1
Improve langauge in INSTALL.md
2017-04-05 00:56:28 +02:00
Daniel Aleksandersen
c4c1e569d0 Improve langauge in INSTALL.md 2017-04-05 00:25:38 +02:00
d0c5b91815 Version 0.1.6 2017-03-25 01:15:37 +01:00
b4ab4b8939 Version 0.1.5 2017-03-25 01:13:31 +01:00
35af244e51 Version 0.1.4 2017-03-25 00:04:44 +01:00
95fb9c084e Update g410effects support 2017-03-25 00:03:05 +01:00
a1d4c81471 Improve code layout 2017-03-24 23:53:38 +01:00
970c857d5b Update TODO 2017-03-24 23:26:38 +01:00
3a1973e880 Merge pull request #57 from wextia/patch-1
Update CONTRIBUTORS.md
2017-03-24 21:36:02 +01:00
Victor Alcazar
667d060423 Update CONTRIBUTORS.md 2017-03-24 09:20:22 +01:00
b5316e5df8 Merge pull request #55 from wextia/master
Fixed markdown formatting on README.md
2017-03-22 21:22:01 +01:00
wextia
78108952be Fixed markdown formatting on README.md 2017-03-22 15:07:45 +01:00
a61eaade55 Update TODO.md 2017-03-19 01:01:13 +01:00
16897f069a Update TODO.md 2017-03-19 00:40:29 +01:00
16b8b7d12c Version 0.1.3 2017-03-18 22:17:43 +01:00
9545bfc79f Add gkeys 2017-03-18 22:10:45 +01:00
4d594583a0 Add sample python effect 2017-03-18 21:52:57 +01:00
00c98a3438 Remove logo for G410 2017-03-18 19:51:43 +01:00
d9a7c4c561 Remove logo for G410 2017-03-18 19:44:37 +01:00
267fd9688d Clean comment 2017-03-17 20:16:57 +01:00
4a59cbeea3 Add CONTRIBUTORS file 2017-03-13 22:58:03 +01:00
d0377d54ab Update TODO 2017-03-13 21:23:09 +01:00
4369e48185 Update TODO 2017-03-12 00:00:48 +01:00
48e6167961 Validate setNativeEffects 2017-03-11 23:56:58 +01:00
53c3a01857 V 0.1.2 2017-03-11 23:31:23 +01:00
af1007636f Merge pull request #52 from CReimer/hidapi_wait
Make hidapi wait for at least 1ms (Fixes #45)
2017-03-11 23:14:33 +01:00
Christopher Reimer
72f5f230eb Make hidapi wait for at least 1ms for any answer from the keyboard. Setting this to 0 seems to make hidapi skip the read. And at least the G910 doesn't seem to like this very much. 2017-03-11 22:30:29 +01:00
1a86c04ba2 Version 0.1.1 2017-03-11 22:02:58 +01:00