mirror of
https://github.com/Toxblh/MTMR.git
synced 2026-01-11 01:18:39 +00:00
* fix for brightness
This commit is contained in:
parent
9d596c6adc
commit
2bf6b90b04
@ -78,8 +78,8 @@ class SupportedTypesHolder {
|
|||||||
let imageParameter = GeneralParameter.image(source: #imageLiteral(resourceName: "brightnessUp"))
|
let imageParameter = GeneralParameter.image(source: #imageLiteral(resourceName: "brightnessUp"))
|
||||||
return (
|
return (
|
||||||
item: .staticButton(title: ""),
|
item: .staticButton(title: ""),
|
||||||
action: .keyPress(keycode: 113),
|
action: .hidKey(keycode: Int(NX_KEYTYPE_BRIGHTNESS_UP)),
|
||||||
tapAction: TapAction(actionType: TapActionType.keyPress, keycode: 113),
|
tapAction: TapAction(actionType: TapActionType.hidKey, keycode: Int(NX_KEYTYPE_BRIGHTNESS_UP)),
|
||||||
longTapAction: LongTapAction(actionType: TapActionType.none),
|
longTapAction: LongTapAction(actionType: TapActionType.none),
|
||||||
parameters: [.image: imageParameter]
|
parameters: [.image: imageParameter]
|
||||||
)
|
)
|
||||||
@ -88,8 +88,8 @@ class SupportedTypesHolder {
|
|||||||
let imageParameter = GeneralParameter.image(source: #imageLiteral(resourceName: "brightnessDown"))
|
let imageParameter = GeneralParameter.image(source: #imageLiteral(resourceName: "brightnessDown"))
|
||||||
return (
|
return (
|
||||||
item: .staticButton(title: ""),
|
item: .staticButton(title: ""),
|
||||||
action: .keyPress(keycode: 107),
|
action: .hidKey(keycode: Int(NX_KEYTYPE_BRIGHTNESS_DOWN)),
|
||||||
tapAction: TapAction(actionType: TapActionType.keyPress, keycode: 107),
|
tapAction: TapAction(actionType: TapActionType.hidKey, keycode: Int(NX_KEYTYPE_BRIGHTNESS_DOWN)),
|
||||||
longTapAction: LongTapAction(actionType: TapActionType.none),
|
longTapAction: LongTapAction(actionType: TapActionType.none),
|
||||||
parameters: [.image: imageParameter]
|
parameters: [.image: imageParameter]
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user