With the April 2025 firmware my trackball keys are now switched to what I think is the default layout that new Pockets ship with, from left to right:
[middle click] [left click] (track ball) [scroll] [right click]
Is there a way to change this back to the “old” way? As in:
[scroll] [left click] (track ball) [right click] [middle click]
My muscle memory is already very locked into the old layout and it’s also more ergonomic for my hands when scrolling.
2 Likes
Yes, I was also irked by this and set about fixing it! Not sure if this is the best way, but I found no other place to change the key layout for the trackball.
-
Download the source files here.
-
Navigate to wherever you downloaded it to and /pocket-reform-main/pocket-reform-keyboard-fw/pocket-hid/src
-
Open main.c in your favorite text editor and go to line 554 and replace what is there with this
int tb_btn_left_idx = KBD_COLS*5+4;
int tb_btn_right_idx = KBD_COLS*5+7;
int tb_btn_scroll_idx = KBD_COLS*5+3;
int tb_btn_middle_idx = KBD_COLS*5+8;
Then save and close.
It seems KBD_COLS*5+3
is the trackball button furthest left and KBD_COLS*5+8
is the button on the furthest right and that the trackball itself takes up two columns. Not sure how you would change the function but at least its easy enough to rearrange them to the original order.
-
In the terminal navigate to where you downloaded and /pocket-reform-main/pocket-reform-keyboard-fw/pocket-hid
-
Run ./build.sh
If you encounter errors add whatever dependencies you are missing.
-
Attach external keyboard and enter OLED menu on pocket reform and press X to enter flashing mode.
-
Run ./flash.sh
-
That hopefully works.