Skip to content

Commit

Permalink
Make location lighter toggle key configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Hammie committed Oct 16, 2023
1 parent 7b271ca commit b57f937
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions PROGRAM/CONTROLS/DefaultControls.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ Please follow these rules when editing settings:
#define CTL_FREE_CAM_FORWARD "VK_LBUTTON"
#define CTL_FREE_CAM_BACKWARD "VK_RBUTTON"

// Development tools
#define CTL_DEV_LIGHTER_TOGGLE "KEY_L"


// ======================================
// LIST OF ALLOWED KEYS
Expand Down
3 changes: 3 additions & 0 deletions PROGRAM/CONTROLS/init_pc.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,9 @@ void ExternControlsInit(bool bFirst)
CI_CreateControlOnly("NK_Key_8");
CI_CreateControlOnly("NK_Key_9");*/
// NK <--

// Developer tools
CI_CreateAndSetControls( "", "LighterToggle", CI_GetKeyCode(CTL_DEV_LIGHTER_TOGGLE), 0, false);
}

void ExternInitKeyCodes()
Expand Down

0 comments on commit b57f937

Please sign in to comment.