mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
DSi power button and volume switch support (#1630)
* Add proper BPTWL interrupts * Added DSi power button and volume switch hotkeys * Added hardware reset workaround * Adjusted syntax to follow guidelines * Added DSi output volume synchronization * Fix trivial member function error
This commit is contained in:
@ -52,7 +52,10 @@ static constexpr std::initializer_list<int> hk_general =
|
||||
HK_Lid,
|
||||
HK_Mic,
|
||||
HK_SwapScreens,
|
||||
HK_SwapScreenEmphasis
|
||||
HK_SwapScreenEmphasis,
|
||||
HK_PowerButton,
|
||||
HK_VolumeUp,
|
||||
HK_VolumeDown
|
||||
};
|
||||
|
||||
static constexpr std::initializer_list<const char*> hk_general_labels =
|
||||
@ -66,7 +69,10 @@ static constexpr std::initializer_list<const char*> hk_general_labels =
|
||||
"Close/open lid",
|
||||
"Microphone",
|
||||
"Swap screens",
|
||||
"Swap screen emphasis"
|
||||
"Swap screen emphasis",
|
||||
"DSi Power button",
|
||||
"DSi Volume up",
|
||||
"DSi Volume down"
|
||||
};
|
||||
|
||||
static_assert(hk_general.size() == hk_general_labels.size());
|
||||
|
Reference in New Issue
Block a user