MCPcopy Create free account
hub / github.com/AntiMicroX/antimicrox / isUsingEnhancedPointerPrecision

Method isUsingEnhancedPointerPrecision

src/winextras.cpp:427–440  ·  view source on GitHub ↗

* @brief Used to check if the "Enhance Pointer Precision" Windows * option is currently enabled. * @return Status of "Enhanced Pointer Precision" */

Source from the content-addressed store, hash-verified

425 * @return Status of "Enhanced Pointer Precision"
426 */
427bool WinExtras::isUsingEnhancedPointerPrecision()
428{
429 bool result = false;
430
431 int mouseInfo[3];
432 SystemParametersInfo(SPI_GETMOUSE, 0, &mouseInfo, 0);
433
434 if (mouseInfo[2] > 0)
435 {
436 result = true;
437 }
438
439 return result;
440}
441
442/**
443 * @brief Get the value of "Enhanced Pointer Precision" when the program

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected