xs5871
9c1bd210eb
Reduce key dictionary memory footprint
...
Instead of indexing `Key` objects that have multiple names by each
individual name, index by the set of names. This reduces the size of the
default key dictionary by a factor of between 2 and 3, and as result
also reduces reallocations/defragmentation.
Instead of instantiating all module/extension keys by default, append
them to the `maybe_key`-generator list.
2023-01-31 00:50:54 +00:00
xs5871
5d2a42d9a9
fix trackball module forcing reports to zero
2022-08-01 16:46:53 -07:00
Salvatore La Bua
3d80e4aba8
Consistent variable naming
...
Signed-off-by: Salvatore La Bua <slabua@gmail.com>
2022-07-31 07:44:22 +00:00
Salvatore La Bua
4c93720a2f
Lintfix (hopefully)
...
Signed-off-by: Salvatore La Bua <slabua@gmail.com>
2022-07-31 07:44:22 +00:00
Salvatore La Bua
cb83df25f0
Lintfix
...
Signed-off-by: Salvatore La Bua <slabua@gmail.com>
2022-07-31 07:44:22 +00:00
Salvatore La Bua
5ba865e4c6
Add ScrollDirection class for the Pimoroni Trackball
...
Signed-off-by: Salvatore La Bua <slabua@gmail.com>
2022-07-31 07:44:22 +00:00
Salvatore La Bua
f674ac6b13
Add reverse scrolling mode to the Pimoroni Trackball module
...
Signed-off-by: Salvatore La Bua <slabua@gmail.com>
2022-07-31 07:44:22 +00:00
crazyiop
ffcfc9835d
update format to fstring
2022-06-12 09:31:15 +00:00
Björn Bösel
561896769c
fix code style and import order
2022-06-09 01:58:07 -07:00
Björn Bösel
5bf33056bf
removed handling of old scroll/pointing toggle
2022-06-09 01:58:07 -07:00
Björn Bösel
9a1fc95f54
separated trackball handlers from keyboard layers. added key definitions for separated handler selectaion
2022-06-09 01:58:07 -07:00
Björn Bösel
80660e4336
code style
2022-06-09 01:58:07 -07:00
Björn Bösel
4b0e459d62
Add layers to pimoroni trackball
2022-06-09 01:58:07 -07:00
xs5871
de1d602b25
fix tick overflow and implement periodic timer class.
2022-03-06 00:02:17 -08:00
tonasz
0f7afe5b2c
Add polling_interval to trackball
2022-02-08 13:23:35 -08:00
tonasz
119ab3d80a
Fix pimoroni_trackball.py formatting
2022-02-08 13:23:35 -08:00
tonasz
7fba42f28c
Small pimoroni_trackball.py refactors
2022-02-08 13:23:35 -08:00
tonasz
827862b34b
Pimoroni Trackball draft module
2022-02-08 13:23:35 -08:00