mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-19 13:00:11 -07:00
allow all connected controllers to be used for menu nav
This commit is contained in:
parent
6acabae38f
commit
6fbc8a0b89
1 changed files with 2 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
||||||
#include <spdlog/fmt/fmt.h>
|
#include <spdlog/fmt/fmt.h>
|
||||||
#include "variables.h"
|
#include "variables.h"
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
|
#include "imgui_impl_sdl2.h"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include "z64.h"
|
#include "z64.h"
|
||||||
|
@ -120,6 +121,7 @@ UIWidgets::Colors Menu::GetMenuThemeColor() {
|
||||||
Menu::Menu(const std::string& cVar, const std::string& name, uint8_t searchSidebarIndex_,
|
Menu::Menu(const std::string& cVar, const std::string& name, uint8_t searchSidebarIndex_,
|
||||||
UIWidgets::Colors defaultThemeIndex_)
|
UIWidgets::Colors defaultThemeIndex_)
|
||||||
: GuiWindow(cVar, name), searchSidebarIndex(searchSidebarIndex_), defaultThemeIndex(defaultThemeIndex_) {
|
: GuiWindow(cVar, name), searchSidebarIndex(searchSidebarIndex_), defaultThemeIndex(defaultThemeIndex_) {
|
||||||
|
ImGui_ImplSDL2_SetGamepadMode(ImGui_ImplSDL2_GamepadMode::ImGui_ImplSDL2_GamepadMode_AutoAll);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Menu::InitElement() {
|
void Menu::InitElement() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue