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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user