double click speed in C#

Started by
1 comment, last by Sc4Freak 15 years, 5 months ago
Is it possible to retrieve the current double-click time setting in C#? It's simple enough to 'fake it' but I thought it'd be nice to match the users selected speed in a game tool that I'm making. Is there a registry value that can be simply accessed? FYI - I'm programming in XNA 3.0 and C#. Thanks (in advance) Xy
Advertisement
Nevermind - I'm a dork. Of course it'd be in the registry...

@ "HKEY_CURRENT_USER\Control Panel\Mouse\"

contains all the variables I need.

Xy
Use SystemInformation.DoubleClickTime. Don't go through the registry to get this sort of information - that's digging into the implementation details. Instead, use the documented functions specifically for doing what you want.
NextWar: The Quest for Earth available now for Windows Phone 7.

This topic is closed to new replies.

Advertisement