@@ -1398,9 +1398,9 @@ void UserInterface::createSpritesWindow()
1398
1398
ImGui::GetIO ().ConfigFlags &= ~(ImGuiConfigFlags_NavEnableKeyboard);
1399
1399
enableKeyboardNav = false ;
1400
1400
1401
- if (enableMoveUpButton && ImGui::IsKeyReleased (ImGui::GetKeyIndex ( ImGuiKey_UpArrow) ))
1401
+ if (enableMoveUpButton && ImGui::IsKeyReleased (ImGuiKey_UpArrow))
1402
1402
moveSpriteEntry (*selectedSpriteEntry_, indexInParent, true );
1403
- if (enableMoveDownButton && ImGui::IsKeyReleased (ImGui::GetKeyIndex ( ImGuiKey_DownArrow) ))
1403
+ if (enableMoveDownButton && ImGui::IsKeyReleased (ImGuiKey_DownArrow))
1404
1404
moveSpriteEntry (*selectedSpriteEntry_, indexInParent, false );
1405
1405
}
1406
1406
@@ -1997,9 +1997,9 @@ void UserInterface::createAnimationsWindow()
1997
1997
ImGui::GetIO ().ConfigFlags &= ~(ImGuiConfigFlags_NavEnableKeyboard);
1998
1998
enableKeyboardNav = false ;
1999
1999
2000
- if (enableMoveUpButton && ImGui::IsKeyReleased (ImGui::GetKeyIndex ( ImGuiKey_UpArrow) ))
2000
+ if (enableMoveUpButton && ImGui::IsKeyReleased (ImGuiKey_UpArrow))
2001
2001
nctl::swap (selectedAnimation_->parent ()->anims ()[selectedIndex], selectedAnimation_->parent ()->anims ()[selectedIndex - 1 ]);
2002
- if (enableMoveDownButton && ImGui::IsKeyReleased (ImGui::GetKeyIndex ( ImGuiKey_DownArrow) ))
2002
+ if (enableMoveDownButton && ImGui::IsKeyReleased (ImGuiKey_DownArrow))
2003
2003
nctl::swap (selectedAnimation_->parent ()->anims ()[selectedIndex], selectedAnimation_->parent ()->anims ()[selectedIndex + 1 ]);
2004
2004
}
2005
2005
@@ -3413,9 +3413,9 @@ void UserInterface::createTipsWindow()
3413
3413
ImGui::GetIO ().ConfigFlags &= ~(ImGuiConfigFlags_NavEnableKeyboard);
3414
3414
enableKeyboardNav = false ;
3415
3415
3416
- if (enablePrevButton && ImGui::IsKeyReleased (ImGui::GetKeyIndex ( ImGuiKey_LeftArrow) ))
3416
+ if (enablePrevButton && ImGui::IsKeyReleased (ImGuiKey_LeftArrow))
3417
3417
currentTipIndex--;
3418
- if (enableNextButton && ImGui::IsKeyReleased (ImGui::GetKeyIndex ( ImGuiKey_RightArrow) ))
3418
+ if (enableNextButton && ImGui::IsKeyReleased (ImGuiKey_RightArrow))
3419
3419
currentTipIndex++;
3420
3420
}
3421
3421
0 commit comments