From 6660bb2d8fd3bc5a32f5ec14593e1e4f062ff85e Mon Sep 17 00:00:00 2001 From: Matteo Piccina Date: Thu, 19 Nov 2020 22:27:30 +0100 Subject: [PATCH] Fix brightness keys (#367) --- MTMR/ItemsParsing.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MTMR/ItemsParsing.swift b/MTMR/ItemsParsing.swift index 7aa3c6e..2b590ac 100644 --- a/MTMR/ItemsParsing.swift +++ b/MTMR/ItemsParsing.swift @@ -79,7 +79,7 @@ class SupportedTypesHolder { return ( item: .staticButton(title: ""), actions: [ - Action(trigger: .singleTap, value: .keyPress(keycode: 144)) + Action(trigger: .singleTap, value: .hidKey(keycode: NX_KEYTYPE_BRIGHTNESS_UP)) ], legacyAction: .none, legacyLongAction: .none, @@ -92,7 +92,7 @@ class SupportedTypesHolder { return ( item: .staticButton(title: ""), actions: [ - Action(trigger: .singleTap, value: .keyPress(keycode: 145)) + Action(trigger: .singleTap, value: .hidKey(keycode: NX_KEYTYPE_BRIGHTNESS_DOWN)) ], legacyAction: .none, legacyLongAction: .none,