STRUCT HIDPP_SCROLL_COUNTER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct hidpp_scroll_counter(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this is the page for struct hidpp_scroll_counter, and it is literally the utility class for processing high-resolution scroll events ✨ yeah. mouse girlies, this one's for u.


🌸 NAME 🌸

struct hidpp_scroll_counter β€” the utility class for processing high-resolution scroll events. that's it, that's the whole vibe πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

struct hidpp_scroll_counter {
    int wheel_multiplier;
    int remainder;
    int direction;
    unsigned long long last_time;
};

πŸ¦‹ Members πŸ¦‹

like, let's meet the cast, no cap:

  • wheel_multiplier β€” the scalar multiplier that gets applied to each wheel event. it's giving "how much do we scale this" energy πŸ”₯
  • remainder β€” counts the number of high-resolution units that have moved since the last low-resolution event (REL_WHEEL or REL_HWHEEL) was sent. 🫢 heads up though: it should only be used by class methods. not u. not your friend. only class methods, iykyk πŸ™ˆ
  • direction β€” direction of the last movement, and it's strictly 1 or -1. main character energy, no in-between 😌
  • last_time β€” the last event time, used to reset remainder after inactivity. the "u good? u still scrolling?" timer fr fr ⭐

🌈 SEE ALSO 🌈


ok that's the whole page bestie, go forth and scroll with high resolution πŸ’–

and that's a wrap from ./drivers/hid, October 2026 β€” stay iconic, mwah πŸŽ€πŸ’œ

πŸ“¦ where this page comes from