hidpp_scroll...andle_scroll(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 β€” a hid_scroll_counter struct that's out here describing the wheel
  • hi_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 🧚


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