From e392614cb9797d477d5ae5c385e07f68e52f1fd2 Mon Sep 17 00:00:00 2001 From: gstellenberg Date: Mon, 11 Jan 2010 18:27:37 -0600 Subject: [PATCH] Turn on all debounced switch events by default. --- examples/pinproctest/switches.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/pinproctest/switches.cpp b/examples/pinproctest/switches.cpp index facadee..f0dba99 100644 --- a/examples/pinproctest/switches.cpp +++ b/examples/pinproctest/switches.cpp @@ -53,6 +53,11 @@ void ConfigureSwitches(PRHandle proc, YAML::Node& yamlDoc) { switches[i].state = kPREventTypeInvalid; switches[i].lastEventTime = 0; + + PRSwitchRule sw; + sw.notifyHost = true; + PRSwitchUpdateRule(proc, i, kPREventTypeSwitchClosedDebounced, &sw, NULL, 0); + PRSwitchUpdateRule(proc, i, kPREventTypeSwitchOpenDebounced, &sw, NULL, 0); } }