diff options
author | StapleButter <thetotalworm@gmail.com> | 2018-12-14 03:32:40 +0100 |
---|---|---|
committer | StapleButter <thetotalworm@gmail.com> | 2018-12-14 03:32:40 +0100 |
commit | ff1e21733d82b7338514006d2aac6fdf370fba80 (patch) | |
tree | adc496267122e6ab1380b81d36f1852e92caa994 /src/libui_sdl/main.cpp | |
parent | cb1e6ce750410aa6d56f57454366d009e832a3df (diff) |
add hotkey config values.
duplicate DlgInputConfig so that it can also do hotkey config.
also prevent from opening those config dialogs a billion times.
Diffstat (limited to 'src/libui_sdl/main.cpp')
-rw-r--r-- | src/libui_sdl/main.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/libui_sdl/main.cpp b/src/libui_sdl/main.cpp index e3d981e..981496a 100644 --- a/src/libui_sdl/main.cpp +++ b/src/libui_sdl/main.cpp @@ -1309,7 +1309,12 @@ void OnOpenEmuSettings(uiMenuItem* item, uiWindow* window, void* blarg) void OnOpenInputConfig(uiMenuItem* item, uiWindow* window, void* blarg) { - DlgInputConfig::Open(); + DlgInputConfig::Open(0); +} + +void OnOpenHotkeyConfig(uiMenuItem* item, uiWindow* window, void* blarg) +{ + DlgInputConfig::Open(1); } @@ -1581,6 +1586,8 @@ int main(int argc, char** argv) uiMenuItemOnClicked(menuitem, OnOpenEmuSettings, NULL); menuitem = uiMenuAppendItem(menu, "Input config"); uiMenuItemOnClicked(menuitem, OnOpenInputConfig, NULL); + menuitem = uiMenuAppendItem(menu, "Hotkey config"); + uiMenuItemOnClicked(menuitem, OnOpenHotkeyConfig, NULL); uiMenuAppendSeparator(menu); { uiMenu* submenu = uiNewMenu("Savestate settings"); |