Mice should never need debouncing! If the mouse has issues, replace it with a non-chinese one!
If you mean that you want to make your own, you should always include a "hardware" solution, preferably a better switch and lowpass filter before the controller even gets the switch data.