hidpp_scroll...andle_scroll(9)
β¨ NAME β¨
okay so this is hidpp_scroll_counter_handle_scroll from the Kernel API Manual β and basically what it does is take a high-resolution wheel movement and send out both high-res and low-res scroll events π
πΈ SYNOPSIS πΈ
void hidpp_scroll_counter_handle_scroll (struct input_dev *input_dev ,
struct hidpp_scroll_counter *counter , int hi_res_value );
π ARGUMENTS π
input_devβ a pointer to the input device, bestie π«Άcounterβ ahid_scroll_counterstruct that's out here describing the wheelhi_res_valueβ the movement of the wheel, measured in the mouse's high-resolution units
π¦ DESCRIPTION π¦
So like, you hand this function a high-resolution movement, right? And it converts that movement into fractions of 120 and then emits high-resolution scroll events for the input device. Iconic behavior, honestly β¨
It also uses the multiplier from struct hid_scroll_counter to emit low-resolution scroll events when appropriate β and that part is purely for backwards-compatibility with userspace input libraries. the way that it's holding down the old school scroll experience while also being new school?? obsessed ππ
π§ SEE ALSO π§
- Kernel file
./drivers/hid/hid-logitech-hidpp.c struct hidpp_scroll_counter(9)hidpp10_set_register(9)
ngl bestie, if you're poking at the logitech hidpp driver, those two SEE ALSO entries are your next stops β go read 'em fr fr π
and that's the whole page!! this lil' number came out of ./drivers/hid and it's dated October 2026, filed under the very elegant, very not-truncated-at-all title hidpp_scroll...andle_scroll(9) π slay πβ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms