1
0
mirror of https://github.com/MatMoul/g810-led.git synced 2026-05-27 16:46:40 +00:00
Commit Graph

136 Commits

Author SHA1 Message Date
matmoul 0a7ee5b858 Add G413 support 2017-08-02 11:43:03 +02:00
matmoul 476bf8b5af Add G413 support 2017-08-01 22:51:20 +02:00
matmoul 7d40992489 patch multiple keyboards lost support 2017-05-26 17:26:43 +02:00
Kevin Pearson 07aa241058 Move handling of NativeEffectPart::all to library
Raw use of 0xFF as the effectpart byte is device-undefined and was
implemented as a wrapper around mutliplle native effects calls as well
as handling the indicators. Logic was previously implemented in the
application, allowing for library use in this particular case to have
undefined behavior.

Signed-off-by: Kevin Pearson <pearson.kevin.m@gmail.com>
2017-05-26 10:11:16 -04:00
matmoul d6d976322e Bug Solution 1 2017-05-19 20:37:49 +02:00
Lauri Leukkunen bca3eeb469 Add PRO support
Initial PRO support, effectively treat as g810

Signed-off-by: Lauri Leukkunen <lauri@rahina.org>
2017-05-10 14:10:38 +03:00
matmoul ac8ce20fff Expose SupportedKeyboards var in LedKeyboard class 2017-05-07 04:02:34 +02:00
matmoul b88e839978 Add feature flags to filter help messages 2017-05-07 01:32:31 +02:00
matmoul ebb41b8037 Add new arg -tuk for testing unsuported keyboard 2017-05-06 22:41:08 +02:00
matmoul 7c96ec51bc Code formating 2017-04-29 16:58:02 +02:00
matmoul cbb416527b Merge pull request #73 from pearsonk/SpecDevice
Support specifying a specific device for executing commands
2017-04-29 15:15:44 +02:00
Kevin Pearson c19d4760ce Rearrange argument parsing for help commands
Help output does not need to initialize a device, so rearrange
the parsing to check for help commands prior to performing
any device IO.

Signed-off-by: Kevin Pearson <pearson.kevin.m@gmail.com>
2017-04-29 08:55:53 -04:00
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
Kevin Pearson 47e2468681 Unify version string
Specified version string in makefile will now propogate to VERSION as a
macro appended to CFLAGS.

Cleaned up version string, quotes not necessary when specifying
major/minor/micro, though this is purely cosmetic.

Signed-off-by: Kevin Pearson <pearosn.kevin.m@gmail.com>
2017-04-26 10:07:00 -04:00
matmoul b4d96ffa15 Version 0.2.0 2017-04-21 23:08:03 +02:00
matmoul 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
matmoul 1f0458ea4f Version 0.1.9 2017-04-14 03:08:51 +02:00
matmoul 0e952273c0 Version 0.1.8 2017-04-14 03:06:24 +02:00
matmoul 468b133cf0 Version 0.1.7 2017-04-14 02:42:55 +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
matmoul d0c5b91815 Version 0.1.6 2017-03-25 01:15:37 +01:00
matmoul b4ab4b8939 Version 0.1.5 2017-03-25 01:13:31 +01:00
matmoul 35af244e51 Version 0.1.4 2017-03-25 00:04:44 +01:00
matmoul 95fb9c084e Update g410effects support 2017-03-25 00:03:05 +01:00
matmoul a1d4c81471 Improve code layout 2017-03-24 23:53:38 +01:00
matmoul 16b8b7d12c Version 0.1.3 2017-03-18 22:17:43 +01:00
matmoul d9a7c4c561 Remove logo for G410 2017-03-18 19:44:37 +01:00
matmoul 267fd9688d Clean comment 2017-03-17 20:16:57 +01:00
matmoul 48e6167961 Validate setNativeEffects 2017-03-11 23:56:58 +01:00
matmoul 53c3a01857 V 0.1.2 2017-03-11 23:31:23 +01:00
matmoul 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
matmoul 1a86c04ba2 Version 0.1.1 2017-03-11 22:02:58 +01:00
matmoul 5bdc691ddd Clean code 2017-03-11 21:35:39 +01:00
matmoul 5ca929f15e Clean code 2017-03-11 21:34:29 +01:00
matmoul 3c4c2ceef0 Set V 0.2.0 Branch 2017-03-11 21:34:17 +01:00
matmoul e233ad903f Remove commit for RM Keys 2017-03-11 21:16:38 +01:00
matmoul 8931db5685 Add GKeys mapping mode suport 2017-03-11 21:14:50 +01:00
matmoul 664f1346c7 Filter numpad keys for g410 2017-03-11 18:53:29 +01:00
matmoul d72e526ac9 Typo 2017-03-11 18:44:46 +01:00
matmoul 148bd480df Add MKeys profile support 2017-03-11 18:11:40 +01:00
matmoul be7d367079 Add MKeys led control 2017-03-11 17:56:40 +01:00
matmoul 57acff0910 Version 0.1.0 2017-02-25 03:24:28 +01:00
matmoul 1af3da597b Version 0.0.2 2017-02-25 03:12:20 +01:00
matmoul a43c89a2bd Add make release support 2017-02-25 03:07:10 +01:00
matmoul 7df4cc0888 make more readable 2017-02-25 01:12:58 +01:00
matmoul af6f24aac6 make more readable 2017-02-25 01:11:01 +01:00