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

* fix for brightness

This commit is contained in:
ad 2018-04-30 10:11:22 +03:00
parent 9d596c6adc
commit 2bf6b90b04

View File

@ -78,8 +78,8 @@ class SupportedTypesHolder {
let imageParameter = GeneralParameter.image(source: #imageLiteral(resourceName: "brightnessUp"))
return (
item: .staticButton(title: ""),
action: .keyPress(keycode: 113),
tapAction: TapAction(actionType: TapActionType.keyPress, keycode: 113),
action: .hidKey(keycode: Int(NX_KEYTYPE_BRIGHTNESS_UP)),
tapAction: TapAction(actionType: TapActionType.hidKey, keycode: Int(NX_KEYTYPE_BRIGHTNESS_UP)),
longTapAction: LongTapAction(actionType: TapActionType.none),
parameters: [.image: imageParameter]
)
@ -88,8 +88,8 @@ class SupportedTypesHolder {
let imageParameter = GeneralParameter.image(source: #imageLiteral(resourceName: "brightnessDown"))
return (
item: .staticButton(title: ""),
action: .keyPress(keycode: 107),
tapAction: TapAction(actionType: TapActionType.keyPress, keycode: 107),
action: .hidKey(keycode: Int(NX_KEYTYPE_BRIGHTNESS_DOWN)),
tapAction: TapAction(actionType: TapActionType.hidKey, keycode: Int(NX_KEYTYPE_BRIGHTNESS_DOWN)),
longTapAction: LongTapAction(actionType: TapActionType.none),
parameters: [.image: imageParameter]
)