fix button injection
This commit is contained in:
parent
4e265958eb
commit
94f5f5a382
@ -169,7 +169,7 @@ void InputService::sendButtonPress(aasdk::proto::enums::ButtonCode::Enum buttonC
|
||||
if(buttonCode == aasdk::proto::enums::ButtonCode::SCROLL_WHEEL)
|
||||
{
|
||||
onButtonEvent({projection::ButtonEventType::NONE, wheelDirection, buttonCode});
|
||||
|
||||
OPENAUTO_LOG(info) << "[InputService] SENDING WHEEL ";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -266,7 +266,13 @@ void ServiceFactory::sendButtonPressFromString(const std::string& btn, const int
|
||||
{
|
||||
aasdk::proto::enums::ButtonCode::Enum buttonCode;
|
||||
projection::WheelDirection wheelDirection = projection::WheelDirection::NONE;
|
||||
projection::ButtonEventType buttonEventType = state == 0 ? projection::ButtonEventType::PRESS : projection::ButtonEventType::RELEASE;
|
||||
projection::ButtonEventType buttonEventType = buttonEventType;
|
||||
if (state == 2) {
|
||||
buttonEventType = projection::ButtonEventType::NONE;
|
||||
}
|
||||
else {
|
||||
buttonEventType = state == 0 ? projection::ButtonEventType::PRESS : projection::ButtonEventType::RELEASE;
|
||||
}
|
||||
|
||||
if (btn == "ENTER") {
|
||||
buttonCode = aasdk::proto::enums::ButtonCode::ENTER;
|
||||
|
Loading…
x
Reference in New Issue
Block a user