1
0
mirror of https://github.com/Toxblh/MTMR.git synced 2026-01-10 17:08:39 +00:00

Fix brightness keys (#367)

This commit is contained in:
Matteo Piccina 2020-11-19 22:27:30 +01:00 committed by GitHub
parent 7a1800252c
commit 6660bb2d8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,7 +79,7 @@ class SupportedTypesHolder {
return ( return (
item: .staticButton(title: ""), item: .staticButton(title: ""),
actions: [ actions: [
Action(trigger: .singleTap, value: .keyPress(keycode: 144)) Action(trigger: .singleTap, value: .hidKey(keycode: NX_KEYTYPE_BRIGHTNESS_UP))
], ],
legacyAction: .none, legacyAction: .none,
legacyLongAction: .none, legacyLongAction: .none,
@ -92,7 +92,7 @@ class SupportedTypesHolder {
return ( return (
item: .staticButton(title: ""), item: .staticButton(title: ""),
actions: [ actions: [
Action(trigger: .singleTap, value: .keyPress(keycode: 145)) Action(trigger: .singleTap, value: .hidKey(keycode: NX_KEYTYPE_BRIGHTNESS_DOWN))
], ],
legacyAction: .none, legacyAction: .none,
legacyLongAction: .none, legacyLongAction: .none,