Yaroslav Chvanov
00832cb9f0
sinowealth: add a lift off distance value to config report
2022-02-01 07:20:28 +10:00
Yaroslav Chvanov
866d4e6433
sinowealth: put some macros into enums
2022-02-01 07:20:28 +10:00
Yaroslav Chvanov
cbba00f997
sinowealth: use a map to convert report rates
2022-02-01 07:20:28 +10:00
Yaroslav Chvanov
d2e4fcc23e
sinowealth: put report rate conversion comparison in order
...
And also not use some random number in the comparison.
2022-02-01 07:20:28 +10:00
Yaroslav Chvanov
f0c66d0e1f
sinowealth: separate config to real config and report_rate nibbles
2022-02-01 07:20:28 +10:00
Yaroslav Chvanov
b2fb91e261
sinowealth: use correct bits for report rate
...
Turns out it takes the whole nibble, not just three bits.
2022-02-01 07:20:28 +10:00
Yaroslav Chvanov
1a64d2b85d
Add a TODO to make ratbag_button_action_match support macro actions
2022-02-01 07:11:43 +10:00
Yaroslav Chvanov
8f5fdf8590
Fix ratbag_button_action_match not matching on type NONE
2022-02-01 07:11:43 +10:00
Yaroslav Chvanov
baad36060d
util: fix a string of text being printed out of nowhere
2022-02-01 07:06:38 +10:00
Yaroslav Chvanov
7ecabea70d
sinowealth: remove a redundant comment
2022-01-28 10:31:09 +10:00
Yaroslav Chvanov
c0c8d6c544
sinowealth: increase log level of printed firmware version
2022-01-28 10:31:09 +10:00
Yaroslav Chvanov
37587bb99c
sinowealth: fix a memory leak
...
We were getting profiles, but never unreferenced them afterwards.
2022-01-28 10:31:09 +10:00
Yaroslav Chvanov
cc2fff9c06
sinowealth: rename some functions to be more clear
...
So that they would match button data reading later on.
2022-01-28 10:31:09 +10:00
Yaroslav Chvanov
b80d3ac0a3
sinowealth: use the detected LED count
...
I put this in a separate commit as 99% of this is just a change of
indentation levels, which doesn't look nice in git.
2022-01-28 10:31:09 +10:00
Yaroslav Chvanov
a757180d60
sinowealth: detect LED count at run-time
2022-01-28 10:31:09 +10:00
Yaroslav Chvanov
8c0124d654
sinowealth: move raw data reading from init function to probe function
2022-01-28 10:31:09 +10:00
Yaroslav Chvanov
b5d41e3657
sinowealth: put reading of raw configuration data into a helper
2022-01-28 10:31:09 +10:00
Yaroslav Chvanov
bfd2fc9969
sinowealth: print firmware version on profile init, not on reading
2022-01-28 10:31:09 +10:00
Yaroslav Chvanov
566d160de3
sinowealth: make init_profile return error codes
2022-01-28 10:31:09 +10:00
Kyoken
e0dc0a3a5b
fix ratbag-command led setting
2022-01-24 12:55:12 +10:00
Peter Hutterer
5b7af0ec14
CI: actually test with the various meson args
...
Different variable names and no-one noticed.
This means we need to add a few dependencies that weren't needed before.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2022-01-22 12:09:34 +10:00
Peter Hutterer
44a9959344
roccat: name two fields correctly
...
In hindsight, these should've been obvious.
2022-01-20 19:32:14 +00:00
Peter Hutterer
755dbddfb3
meson.build: fix spelling of receiver
2022-01-20 15:47:11 +10:00
Peter Hutterer
1e3a85433a
CI: add a github pages job to the CI
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2021-12-15 14:40:56 +10:00
Peter Hutterer
b3b3e3f838
Drop CircleCI
...
Right now, CircleCI fails with ssh errors because for some reason it
wants to clone the repo over ssh, not https. This is probably fixable
but CircleCI now limits how many runs we can do per month anyway so it's
borderline useless if we do actual developement.
Having to re-learn the Circle CI syntax to fix the current issue is not
an efficient use of our time, so let's just drop this completely, git
will keep the history of what we used to do in the CI for us.
02f3487f52 added a github workflow which
is comparatively incomplete but could be extended to do the previous
test runs. That's a more future-proof path anyway.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2021-12-15 14:40:56 +10:00
Peter Hutterer
f05b671dc1
Install all data files as subdir
...
This removes the need of listing every device in meson.build which is a
common enough mistake for new contributors.
And move the validation tests over to test/ so we don't have to list
them in the exclude_files of the install_subdir() command.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2021-12-13 10:39:42 +10:00
Peter Hutterer
bfadfc3c91
Change the data validation tests to take the directory instead of files
...
Instead of passing a million files, let's pass the directory and do a
pathlib glob instead.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2021-12-13 10:39:42 +10:00
Peter Hutterer
96d93ae387
meson.build: require meson 0.50.0
...
Released March 2019 we've already relied on some of its features anyway,
let's get rid of the warnings.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2021-12-13 10:38:59 +10:00
Peter Hutterer
03891189da
hidpp20: add missing #define to the feature report strings ( #1237 )
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2021-12-06 08:46:40 +10:00
Peter Hutterer
02f3487f52
Add a GitHub Workflow as CI run ( #1238 )
...
CircleCI is limiting how many runs we can do, which results in pipelines
randomly failing when we've used up the credits for this month.
Let's add a github workflow instead. Unfortunately github workflows are
a bit of a toy api, no support for YAML anchors or extending other jobs,
so there's a lot of duplication needed to get a job to do something.
The actions added in this patch help a bit to make the jobs easier to
understand (copied from libwacom).
This only runs on Ubuntu right now.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2021-12-06 08:43:14 +10:00
Ilya guterman
d2f1ff0ca2
tests: test for additonal lightspeed receviers pids
...
PR #1225
2021-11-06 16:53:01 +00:00
Rafael Silva
d5a7ad3730
device: g635: Set buttons as 0
2021-11-06 03:27:32 +02:00
Carlos Mogas da Silva
e98f86fa2a
Add Logitech G635 Headset
2021-11-06 03:27:32 +02:00
Rafael Silva
fb14cb576b
README: add uninstall instruction
2021-11-04 09:35:30 +00:00
Ilya Guterman
2c83f9c3ef
add static assert
2021-11-04 03:36:41 +02:00
Ilya Guterman
b71f439ed6
fix ci failures
2021-11-04 03:36:41 +02:00
Ilya Guterman
dff102be43
steelseries: prefix hidraw writes with 0
2021-11-04 03:36:41 +02:00
mtayllan
6bb92dc313
Set buttons as 0 for logitech g733
2021-11-01 08:25:03 +02:00
mtayllan
92c5923255
Add support to Logitech G733
2021-11-01 08:25:03 +02:00
staticssleever668
6c8a2d36fe
sinowealth: use proper config size when writing
2021-10-26 11:57:53 +03:00
staticssleever668
875aae6985
sinowealth: add support for mice with longer configuration data
2021-10-26 11:57:53 +03:00
Ilya Guterman
a55297e0fa
fix button count and default report rate always zero
2021-10-20 11:29:55 +03:00
staticssleever668
fa95abbc33
hidpp20: give some structures names
...
Fixes SWIG's 503 warnings.
2021-10-16 22:43:37 +03:00
staticssleever668
48d1b21036
driver-hidpp20: cast an internal log priority enumeration to the general one
...
Fixes an 'enum-conversion' warning by clang.
2021-10-16 22:43:37 +03:00
staticssleever668
904aedc555
driver-hidpp10: cast an internal log priority enumeration to the general one
...
Fixes an 'enum-conversion' warning by clang.
2021-10-16 22:43:37 +03:00
staticssleever668
4fa8663cfb
driver-hidpp10: remove a redundant character array null check
...
It is never null. Fixes a 'pointer-bool-conversion' warning by clang.
2021-10-16 22:43:37 +03:00
staticssleever668
58086882a3
ratbagd: initialize a variable
...
Fixes a 'sometimes-uninitialized' warning by clang.
2021-10-16 22:43:37 +03:00
Tayllan
aef92645b7
hidpp20: allow setting a default buttons count
...
PR #1212
2021-10-16 20:08:44 +01:00
staticssleever668
514ce5419f
data: add SteelSeries Rival 100/105
2021-10-16 19:31:11 +01:00
staticssleever668
2a0a3cf203
steelseries: add support for changing LEDs on Rival 100
2021-10-16 19:31:11 +01:00