Skip to content

Commit

Permalink
https://forum.clockworkpi.com/t/uconsole-trackball-as-scrolling-wheel…
Browse files Browse the repository at this point in the history
…-temporary-solution/11032/3

add Fn+trackball to  scroll

change volume key logic
```
Fn+vol = mute
shift+vol = vol up
vol = vol down
```
  • Loading branch information
cuu committed Nov 21, 2023
1 parent c309e15 commit 18853c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file modified Bin/uconsole_keyboard_flash.tar.gz
Binary file not shown.
4 changes: 3 additions & 1 deletion Code/uconsole_keyboard/trackball.ino
Expand Up @@ -67,7 +67,9 @@ static void interrupt( ) {
void trackball_task(DEVTERM*dv) {
int8_t x = 0, y = 0, w = 0;
noInterrupts();
const auto mode = dv->state->moveTrackball();
//const auto mode = dv->state->moveTrackball();
//https://forum.clockworkpi.com/t/uconsole-trackball-as-scrolling-wheel-temporary-solution/11032/3
const auto mode = dv->Keyboard_state.fn_on == 0 ? TrackballMode::Mouse : TrackballMode::Wheel;
if (lastMode != mode) {
rateMeter[AXIS_X].expire();
rateMeter[AXIS_Y].expire();
Expand Down

0 comments on commit 18853c7

Please sign in to comment.