Mouse Test
Click the grey box and press every button. They light up on the drawn mouse. Turn the wheel, double click, and move the mouse for a polling rate estimate.
https://flxcode.com/mouse-test/
Click the grey box, then press each mouse button and turn the wheel.
Press and scroll here
- Left not pressed yet
- Middle not pressed yet
- Right not pressed yet
- Back not pressed yet
- Forward not pressed yet
- Wheel up
- 0
- Wheel down
- 0
- Left clicks 2 times in a row (gap)
- –
- Fastest and average gap
- –
- Double clicks the browser reported
- 0
Wheel numbers count wheel events, not notches. A free-spinning or smooth-scroll wheel sends many events per turn. A double click here is two presses of one button less than 1 second apart. Your system decides what counts as a double click, 500 ms on Windows by default.
Polling rate estimate
Move your mouse quickly in this box
–
An estimate from how often the browser sees your mouse move. It is the real rate only if the browser passes on every sample. Many browsers join samples into one event per frame, so the result can look low, for example 60 Hz. Treat it as a hint, not a measurement of the mouse.
No ads. No account. Nothing you click or move leaves the page. How we count
Problem or idea? Email us
Quick start
- Click the grey box so it has focus. Now the page keeps the wheel and the side buttons from acting on the page.
- Press left, middle, right, back and forward. Each turns blue while held and light blue once seen.
- Turn the wheel up and down. Check both counters move.
- Double click the left button to see the gap in milliseconds.
- Move the mouse fast in the lower box for the polling rate estimate.
The five buttons
| Button | Browser code | Where |
|---|---|---|
| Left | button = 0 | Main click |
| Middle | button = 1 | Click on the wheel |
| Right | button = 2 | Opens the context menu, which the box blocks |
| Back | button = 3 | Side button, thumb side, rear |
| Forward | button = 4 | Side button, thumb side, front |
The code is what a web page receives when you press the button. Software that remaps buttons changes it before the page sees it.
Polling rate and how the estimate works
A mouse sends its position 125, 250, 500, 1000, 2000, 4000, 8000 times a second at the common settings. The gap between two reports is
1000 ÷ rate milliseconds. The page collects at least 20 gaps between pointer samples, takes the middle one and turns it back into Hz.
| Gap between samples | Estimate | Closest common rate |
|---|---|---|
| 1 ms | 1000 Hz | 1000 Hz |
| 2 ms | 500 Hz | 500 Hz |
| 8 ms | 125 Hz | 125 Hz |
That table uses made up time stamps, 41 samples each, to show the maths. Real readings are noisier. Every gap under 0.05 ms is ignored as a repeat, and every gap over 50 ms is treated as a pause.
Double click speed
Three pairs of left presses with gaps of 180 ms, 240 ms, 210 ms: the page shows 210 ms for the last, 180 ms for the fastest and 210 ms for the average. A pair only counts when the gap is 1 second or less.
Numbers this uses
- A double click is two presses of one button less than 1000 ms apart. Your system uses its own limit, 500 ms by default on Windows.
- The polling estimate needs 20 gaps, ignores gaps over 50 ms and caps at 8000 Hz.
- The wheel counters count wheel events. One event is one notch on most plain wheels.
- Only a real mouse is counted. Touch and pen input are ignored.
A button does not respond?
- Press it again, firmly, in the middle of the button. A worn switch can miss presses.
- Check the mouse software. It may remap the button to a key or a macro, so the page never sees a click.
- Try another USB port, or another computer, to tell a mouse fault from a software one.
- A wheel that counts the wrong direction at times is often dirty. Clean around the wheel with compressed air.
- Double clicks you did not make point to a worn switch. If the gap list shows very short gaps after a single press, the switch is bouncing.
Limits
- The polling rate is an estimate and depends on the browser. Chrome and Edge give the best raw samples.
- The system or the mouse driver may take some buttons before the page sees them.
- On a Mac, a trackpad and an Apple mouse have no back and forward buttons.
Nothing you click or move is uploaded. We count events without cookies (details).
FAQ
How do I test my mouse buttons online?
Click the grey box, then press each button once. Left, middle (the wheel click), right, back and forward light up on the drawn mouse and tick in the list. A button that never ticks is worth a closer look.
Why do the back and forward buttons not light up?
Not every mouse has them. If yours does, the browser may use them to move through history. The page tries to stop that inside the box, but some browsers still act on release. Press them again after you click the box. Mouse software that remaps those buttons to a macro also hides them from the page.
What is mouse polling rate?
How many times a second the mouse reports its position to the computer. 125 Hz is 8 ms between reports, 1000 Hz is 1 ms. Gaming mice often offer 1000 Hz or more. A higher rate makes the pointer a little smoother and a little more responsive.
How accurate is the polling rate estimate?
It is an estimate. The page looks at the time stamps the browser gives for the samples inside each pointer move and takes the middle gap. If the browser or system joins samples into one event per frame, you see your screen rate, such as 60 Hz, instead of the mouse rate. Move fast and in circles for at least a second. Use a dedicated tool when the exact number matters.
How is the double click speed measured?
It is the time between two presses of the left button, when they are less than 1 second apart. The page shows the last gap, the fastest and the average. Windows counts two presses as a double click when they are within 500 ms by default. That setting is in your system, and the page does not change it.
Why does the wheel counter jump by more than one?
It counts wheel events, not notches. A wheel with smooth scrolling, a free-spin wheel and a trackpad send many small events per turn. A normal notched wheel sends one event per click in most browsers.
Does it work with a touchpad or a touch screen?
A touchpad works for left and right clicks and for scrolling. A touch screen has no mouse buttons, so touches are not counted here. Use the CPS Test to check taps.
Are my clicks or movements saved or sent?
No. Button presses, wheel turns and mouse movement are read in your browser and dropped when you close the tab. We count events such as "button seen" with the button name, and never the position, the speed or any number.
More from FLXCode
CPS TestNew
Count your clicks per second in 1, 5, 10, 30 or 60 seconds, with mouse, touch or spacebar, and see a rating.
Keyboard TesterNew
Press keys and see them light up on a PC, Mac or JIS keyboard. Shows key and code, and how many keys are seen at once.
Gamepad TesterNew
Test a game controller in the browser: buttons, sticks, triggers, stick drift with a suggested deadzone, and vibration.
Webcam TestNew
Check your camera in the browser: picture, real resolution, frame rate and supported sizes. Nothing is uploaded.