feat(keymap-upgrader): Upgrade encoder resolution
Added an upgrade function to the keymap upgrader to replace the encoder "resolution" property with "steps" and (if it is not already present) "triggers-per-rotation".
This commit is contained in:
parent
be75da096c
commit
3a4cf185a1
3 changed files with 171 additions and 6 deletions
|
|
@ -2,6 +2,7 @@ import { createParser } from "./parser";
|
|||
import { applyEdits, Range } from "./textedit";
|
||||
|
||||
import { upgradeBehaviors } from "./behaviors";
|
||||
import { upgradeEncoderResolution } from "./encoder";
|
||||
import { upgradeHeaders } from "./headers";
|
||||
import { upgradeKeycodes } from "./keycodes";
|
||||
import { upgradeNodeNames } from "./nodes";
|
||||
|
|
@ -11,6 +12,7 @@ export { initParser } from "./parser";
|
|||
|
||||
const upgradeFunctions = [
|
||||
upgradeBehaviors,
|
||||
upgradeEncoderResolution,
|
||||
upgradeHeaders,
|
||||
upgradeKeycodes,
|
||||
upgradeNodeNames,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue