tmk / tmk_keyboard

Keyboard firmwares for Atmel AVR and Cortex-M
3.98k stars 1.7k forks source link

Kensington Turbo 5 Mapping #677

Closed BosungLim closed 3 years ago

BosungLim commented 3 years ago

I am using Turbo 5 and wondered if we can change the mouse button mapping. It will be great if it can make the scroll function.

tmk commented 3 years ago

You can do with tools on computer like xmodmap and xbindkeys, though, it is still nice idea. PR would be appreciated.

For someone who want to try scroll function, ps2_mouse has codes for the function: https://github.com/tmk/tmk_keyboard/blob/6360eb308c4b81d5effde77e9b0f357dd9673696/tmk_core/protocol/ps2_mouse.c#L124-L160

You can apply this code into adb_mouse_task() in matrix.c of adb_usb probably.

BosungLim commented 3 years ago

sorry, I had closed the issue by a mistake and reopened it.

anyway, I will try and leave the comments. thank you for your helps.