1
0
mirror of https://github.com/preble/libpinproc synced 2026-02-24 18:25:23 +01:00

Reworked eventType out of PRSwitchRule and into the PRSwitchesUpdateRule() param list.

Added PRDriverState* functions for manipulating PRDriverState, removed helper functions for same from PRDevice.
This commit is contained in:
Adam Preble
2009-05-20 23:11:48 -04:00
parent c46d928ee3
commit 9716e222a7
5 changed files with 127 additions and 81 deletions

View File

@@ -105,10 +105,8 @@ void ConfigureSwitches(PRHandle proc)
{
PRSwitchRule sw;
sw.notifyHost = true;
sw.eventType = kPREventTypeSwitchClosedDebounced;
PRSwitchesUpdateRule(proc, i, &sw, NULL, 0);
sw.eventType = kPREventTypeSwitchOpenDebounced;
PRSwitchesUpdateRule(proc, i, &sw, NULL, 0);
PRSwitchesUpdateRule(proc, i, kPREventTypeSwitchClosedDebounced, &sw, NULL, 0);
PRSwitchesUpdateRule(proc, i, kPREventTypeSwitchOpenDebounced, &sw, NULL, 0);
}
}