diff --git a/lib/states.js b/lib/states.js index f4b6eb9f..6fa79cba 100644 --- a/lib/states.js +++ b/lib/states.js @@ -4937,7 +4937,7 @@ const states = { read: true, type: 'boolean', isEvent: true, - getter: payload => (payload.action === 'left') ? true : undefined, + getter: payload => (payload.action === 'left' || payload.action === 'single_left') ? true : undefined, }, lumi_right_click: { id: 'right_click', @@ -4949,7 +4949,7 @@ const states = { read: true, type: 'boolean', isEvent: true, - getter: payload => (payload.action === 'right') ? true : undefined, + getter: payload => (payload.action === 'right' || payload.action === 'single_right') ? true : undefined, }, lumi_both_click: { id: 'both_click', @@ -4961,7 +4961,7 @@ const states = { read: true, type: 'boolean', isEvent: true, - getter: payload => (payload.action === 'both') ? true : undefined, + getter: payload => (payload.action === 'both' || payload.action === 'single_both') ? true : undefined, }, lumi_left_click_long: { id: 'left_click_long', @@ -4973,7 +4973,7 @@ const states = { read: true, type: 'boolean', isEvent: true, - getter: payload => (payload.action === 'left_long') ? true : undefined, + getter: payload => (payload.action === 'left_long' || payload.action === 'hold_left') ? true : undefined, }, lumi_right_click_long: { id: 'right_click_long', @@ -4985,7 +4985,7 @@ const states = { read: true, type: 'boolean', isEvent: true, - getter: payload => (payload.action === 'right_long') ? true : undefined, + getter: payload => (payload.action === 'right_long' || payload.action === 'hold_right') ? true : undefined, }, lumi_left_click_double: { id: 'left_click_double', @@ -4997,7 +4997,7 @@ const states = { read: true, type: 'boolean', isEvent: true, - getter: payload => (payload.action === 'left_double') ? true : undefined, + getter: payload => (payload.action === 'left_double' || payload.action === 'double_left') ? true : undefined, }, lumi_right_click_double: { id: 'right_click_double', @@ -5009,7 +5009,7 @@ const states = { read: true, type: 'boolean', isEvent: true, - getter: payload => (payload.action === 'right_double') ? true : undefined, + getter: payload => (payload.action === 'right_double' || payload.action === 'double_right') ? true : undefined, }, lumi_both_click_long: { id: 'both_click_long', @@ -5021,7 +5021,7 @@ const states = { read: true, type: 'boolean', isEvent: true, - getter: payload => (payload.action === 'both_long') ? true : undefined, + getter: payload => (payload.action === 'both_long' || payload.action === 'hold_both') ? true : undefined, }, lumi_both_click_double: { id: 'both_click_double', @@ -5033,7 +5033,7 @@ const states = { read: true, type: 'boolean', isEvent: true, - getter: payload => (payload.action === 'both_double') ? true : undefined, + getter: payload => (payload.action === 'both_double' || payload.action === 'double_both') ? true : undefined, }, plug_summdelivered: { id: 'energy',