Skip to content

Commit

Permalink
Allow touch zones to be affected by id and feature type filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
SenkyDragon committed Jan 18, 2024
1 parent 81702f8 commit 1626747
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ class BridgeToy {
if (source.deviceType === 'pen' || source.deviceType === 'orf') {
if (source.deviceType === 'pen' && !bindPen) continue;
if (source.deviceType === 'orf' && !bindOrf) continue;
}
if (source.deviceType === 'pen' || source.deviceType === 'orf' || source.deviceType === 'touch') {
if (bindIds.length && !bindIds.includes(source.deviceName)) continue;
if (!this.getConfigBool(source.featureName, defaultFeatures.includes(source.featureName))) continue;
}
Expand Down

0 comments on commit 1626747

Please sign in to comment.