service/apt: Add and implement more service commands. (#6721)
* service/apt: Add and implement more service commands. * service/apt: Implement power button. * Address review comments and fix GetApplicationRunningMode bug.
This commit is contained in:
parent
51996c54f0
commit
bb364d9bc0
31 changed files with 939 additions and 221 deletions
|
@ -100,13 +100,14 @@ enum Values {
|
|||
ZR,
|
||||
|
||||
Home,
|
||||
Power,
|
||||
|
||||
NumButtons,
|
||||
};
|
||||
|
||||
constexpr int BUTTON_HID_BEGIN = A;
|
||||
constexpr int BUTTON_IR_BEGIN = ZL;
|
||||
constexpr int BUTTON_NS_BEGIN = Home;
|
||||
constexpr int BUTTON_NS_BEGIN = Power;
|
||||
|
||||
constexpr int BUTTON_HID_END = BUTTON_IR_BEGIN;
|
||||
constexpr int BUTTON_IR_END = BUTTON_NS_BEGIN;
|
||||
|
@ -134,6 +135,7 @@ static const std::array<const char*, NumButtons> mapping = {{
|
|||
"button_zl",
|
||||
"button_zr",
|
||||
"button_home",
|
||||
"button_power",
|
||||
}};
|
||||
|
||||
} // namespace NativeButton
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue