Skip to content

Commit

Permalink
Simplify the keypad keycode handling
Browse files Browse the repository at this point in the history
  • Loading branch information
erwinpan1 committed Feb 13, 2024
1 parent 6c43a2b commit d39c234
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions examples/chef/common/clusters/keypad-input/KeypadInputManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,62 +35,24 @@ void KeypadInputManager::HandleSendKey(CommandResponseHelper<SendKeyResponseType
switch (keycCode)
{
case CecKeyCodeType::kUp:
response.status = chip::app::Clusters::KeypadInput::StatusEnum::kSuccess;
break;
case CecKeyCodeType::kDown:
response.status = chip::app::Clusters::KeypadInput::StatusEnum::kSuccess;
break;
case CecKeyCodeType::kLeft:
response.status = chip::app::Clusters::KeypadInput::StatusEnum::kSuccess;
break;
case CecKeyCodeType::kRight:
response.status = chip::app::Clusters::KeypadInput::StatusEnum::kSuccess;
break;
case CecKeyCodeType::kSelect:
response.status = chip::app::Clusters::KeypadInput::StatusEnum::kSuccess;
break;
case CecKeyCodeType::kBackward:
response.status = chip::app::Clusters::KeypadInput::StatusEnum::kSuccess;
break;
case CecKeyCodeType::kExit:
response.status = chip::app::Clusters::KeypadInput::StatusEnum::kSuccess;
break;
case CecKeyCodeType::kRootMenu:
response.status = chip::app::Clusters::KeypadInput::StatusEnum::kSuccess;
break;
case CecKeyCodeType::kSetupMenu:
response.status = chip::app::Clusters::KeypadInput::StatusEnum::kSuccess;
break;
case CecKeyCodeType::kEnter:
response.status = chip::app::Clusters::KeypadInput::StatusEnum::kSuccess;
break;
case CecKeyCodeType::kNumber0OrNumber10:
response.status = chip::app::Clusters::KeypadInput::StatusEnum::kSuccess;
break;
case CecKeyCodeType::kNumbers1:
response.status = chip::app::Clusters::KeypadInput::StatusEnum::kSuccess;
break;
case CecKeyCodeType::kNumbers2:
response.status = chip::app::Clusters::KeypadInput::StatusEnum::kSuccess;
break;
case CecKeyCodeType::kNumbers3:
response.status = chip::app::Clusters::KeypadInput::StatusEnum::kSuccess;
break;
case CecKeyCodeType::kNumbers4:
response.status = chip::app::Clusters::KeypadInput::StatusEnum::kSuccess;
break;
case CecKeyCodeType::kNumbers5:
response.status = chip::app::Clusters::KeypadInput::StatusEnum::kSuccess;
break;
case CecKeyCodeType::kNumbers6:
response.status = chip::app::Clusters::KeypadInput::StatusEnum::kSuccess;
break;
case CecKeyCodeType::kNumbers7:
response.status = chip::app::Clusters::KeypadInput::StatusEnum::kSuccess;
break;
case CecKeyCodeType::kNumbers8:
response.status = chip::app::Clusters::KeypadInput::StatusEnum::kSuccess;
break;
case CecKeyCodeType::kNumbers9:
response.status = chip::app::Clusters::KeypadInput::StatusEnum::kSuccess;
break;
Expand Down

0 comments on commit d39c234

Please sign in to comment.