Trigger longpress already on hold again, not just on released

This commit is contained in:
Michael Zanetti 2020-04-09 12:11:39 +02:00
parent f4b0badfd8
commit 5c97828655

View File

@ -1035,7 +1035,7 @@ void IntegrationPluginPhilipsHue::onRemoteButtonEvent(int buttonCode)
param = Param(remotePressedEventButtonNameParamTypeId, "ON"); param = Param(remotePressedEventButtonNameParamTypeId, "ON");
id = remotePressedEventTypeId; id = remotePressedEventTypeId;
break; break;
case 1003: case 1001:
param = Param(remoteLongPressedEventButtonNameParamTypeId, "ON"); param = Param(remoteLongPressedEventButtonNameParamTypeId, "ON");
id = remoteLongPressedEventTypeId; id = remoteLongPressedEventTypeId;
break; break;
@ -1043,7 +1043,7 @@ void IntegrationPluginPhilipsHue::onRemoteButtonEvent(int buttonCode)
param = Param(remotePressedEventButtonNameParamTypeId, "DIM UP"); param = Param(remotePressedEventButtonNameParamTypeId, "DIM UP");
id = remotePressedEventTypeId; id = remotePressedEventTypeId;
break; break;
case 2003: case 2001:
param = Param(remoteLongPressedEventButtonNameParamTypeId, "DIM UP"); param = Param(remoteLongPressedEventButtonNameParamTypeId, "DIM UP");
id = remoteLongPressedEventTypeId; id = remoteLongPressedEventTypeId;
break; break;
@ -1051,7 +1051,7 @@ void IntegrationPluginPhilipsHue::onRemoteButtonEvent(int buttonCode)
param = Param(remotePressedEventButtonNameParamTypeId, "DIM DOWN"); param = Param(remotePressedEventButtonNameParamTypeId, "DIM DOWN");
id = remotePressedEventTypeId; id = remotePressedEventTypeId;
break; break;
case 3003: case 3001:
param = Param(remoteLongPressedEventButtonNameParamTypeId, "DIM DOWN"); param = Param(remoteLongPressedEventButtonNameParamTypeId, "DIM DOWN");
id = remoteLongPressedEventTypeId; id = remoteLongPressedEventTypeId;
break; break;
@ -1059,7 +1059,7 @@ void IntegrationPluginPhilipsHue::onRemoteButtonEvent(int buttonCode)
param = Param(remotePressedEventButtonNameParamTypeId, "OFF"); param = Param(remotePressedEventButtonNameParamTypeId, "OFF");
id = remotePressedEventTypeId; id = remotePressedEventTypeId;
break; break;
case 4003: case 4001:
param = Param(remoteLongPressedEventButtonNameParamTypeId, "OFF"); param = Param(remoteLongPressedEventButtonNameParamTypeId, "OFF");
id = remoteLongPressedEventTypeId; id = remoteLongPressedEventTypeId;
break; break;
@ -1094,7 +1094,7 @@ void IntegrationPluginPhilipsHue::onRemoteButtonEvent(int buttonCode)
case 1002: case 1002:
id = smartButtonPressedEventTypeId; id = smartButtonPressedEventTypeId;
break; break;
case 1003: case 1001:
id = smartButtonLongPressedEventTypeId; id = smartButtonLongPressedEventTypeId;
break; break;
default: default: