diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-10-02 10:45:09 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-10-02 10:45:09 -0400 |
| commit | 3dd940cc0a9f985f7c7520f5064840cf7a25d5c9 (patch) | |
| tree | 716cbe6626b8878fb1f9a0ad2e080c02b0faac04 /editor | |
| parent | 784aafce17590613543f7042357bb1c8def87cd4 (diff) | |
pke: use explicit bucket on input set
Diffstat (limited to 'editor')
| -rw-r--r-- | editor/editor.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/editor.cpp b/editor/editor.cpp index 8445b3f..df5724c 100644 --- a/editor/editor.cpp +++ b/editor/editor.cpp @@ -2264,7 +2264,8 @@ void PkeEditor_Init() { pke_input_set debugControlsSet{}; debugControlsSet.title = "debug-editor-controls"; debugControlsSet.actionCount = 14; - debugControlsSet.actions = pk_new_arr<pke_input_action>(debugControlsSet.actionCount); + debugControlsSet.bkt = pkeSettings.mem_bkt.game; + debugControlsSet.actions = pk_new_arr<pke_input_action>(debugControlsSet.actionCount, debugControlsSet.bkt); debugControlsSet.flags = PKE_INPUT_ACTION_SET_FLAG_DO_NOT_SERIALIZE; debugControlsSet.actions[0].name = dbgCtrl_CameraLeft; @@ -2337,7 +2338,7 @@ void PkeEditor_Init() { .button = GLFW_KEY_F1, }; - debugControlsHandle = pke_input_register_set(debugControlsSet); + debugControlsHandle = pke_input_register_set(std::move(debugControlsSet)); btTransform trfm{}; trfm.setIdentity(); |
