summaryrefslogtreecommitdiff
path: root/editor/editor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor.cpp')
-rw-r--r--editor/editor.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/editor/editor.cpp b/editor/editor.cpp
index bf17860..12bc9d0 100644
--- a/editor/editor.cpp
+++ b/editor/editor.cpp
@@ -1126,6 +1126,19 @@ void RecordImGuiPlayerInput() {
ImGuiTableFlags_RowBg
};
+
+ pk_arr_t<pke_input_set> &input_sets = pke_input_get_input_sets();
+ pk_arr_t<pke_input_action_set_handle> &active_handles = pke_input_get_active_input_action_set_handles();
+
+ if (ImGui::BeginTable("Active Sets", 1, tableFlags)) {
+ for (u = 0; u < active_handles.next; ++u) {
+ ImGui::TableNextRow();
+ ImGui::TableSetColumnIndex(0);
+ ImGui::Text("Active: %hhu", static_cast<pke_input_action_set_handle_T>(active_handles[u]));
+ }
+ ImGui::EndTable();
+ }
+
if (ImGui::BeginTable("Player Inputs", 9, tableFlags)) {
ImGui::TableSetupColumn("Set Index/Title");
ImGui::TableSetupColumn("Set Flags");
@@ -1138,7 +1151,6 @@ void RecordImGuiPlayerInput() {
ImGui::TableSetupColumn("1 Mods");
ImGui::TableHeadersRow();
- pk_arr_t<pke_input_set> input_sets = pke_input_get_input_sets();
for (u = 0; u < input_sets.next; ++u) {
set = &input_sets[u];
for (i = 0; i < set->actionCount; ++i) {