Skip to content

Commit

Permalink
Fix brightness keys (Toxblh#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
cipi1965 authored and tomeresk committed Jul 16, 2021
1 parent 9bc5d15 commit f0773b7
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 f0773b7

Please sign in to comment.