Skip to content

Commit

Permalink
Fix brightness keys (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
cipi1965 committed Nov 19, 2020
1 parent 7a18002 commit 6660bb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MTMR/ItemsParsing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 6660bb2

Please sign in to comment.