Mouse.dll is a plugin for Rainmeter that will run an Action when interacting with the mouse.
The actions are independent from the update cycle, removing the need for a fast update value for accurate values.
The documentation and example skin are available in the wiki