mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-01 22:30:42 -07:00
overlay: remove keyboard / gamepad tab navigation (#755)
Tired of constantly fighting unintentional keyboard navigation behavior. Also, remove `ImGuiConfigFlags_IsTouchScreen` which literally does nothing.
This commit is contained in:
@@ -308,16 +308,10 @@ void overlay::SpiceOverlay::init() {
|
|||||||
// configure IO
|
// configure IO
|
||||||
auto &io = ImGui::GetIO();
|
auto &io = ImGui::GetIO();
|
||||||
io.UserData = this;
|
io.UserData = this;
|
||||||
io.ConfigFlags = ImGuiConfigFlags_NavEnableKeyboard
|
io.ConfigFlags = ImGuiConfigFlags_None;
|
||||||
| ImGuiConfigFlags_NavEnableGamepad
|
|
||||||
| ImGuiConfigFlags_NavEnableSetMousePos;
|
|
||||||
|
|
||||||
if (!cfg::CONFIGURATOR_STANDALONE) {
|
if (!cfg::CONFIGURATOR_STANDALONE) {
|
||||||
io.ConfigFlags |= ImGuiConfigFlags_DockingEnable;
|
io.ConfigFlags |= ImGuiConfigFlags_DockingEnable;
|
||||||
}
|
}
|
||||||
if (is_touch_available("SpiceOverlay::init")) {
|
|
||||||
io.ConfigFlags |= ImGuiConfigFlags_IsTouchScreen;
|
|
||||||
}
|
|
||||||
|
|
||||||
// temporarily turn this off as it can cause crashes during font load failures
|
// temporarily turn this off as it can cause crashes during font load failures
|
||||||
// turns back on in ImGui_ImplSpice_Init
|
// turns back on in ImGui_ImplSpice_Init
|
||||||
|
|||||||
Reference in New Issue
Block a user