change sample debug key to f1

This commit is contained in:
BlackMATov
2023-01-08 12:01:21 +07:00
parent 1cc595ca12
commit 35b0361947
13 changed files with 51 additions and 12 deletions

3
.gitignore vendored
View File

@@ -1,6 +1,5 @@
.vs/*
.vscode/*
build/*
.clangd/*
.DS_Store
CMakeSettings.json
CMakeLists.txt.user

11
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [{
"name": "LLDB Debug",
"type": "lldb",
"request": "launch",
"program": "${command:cmake.launchTargetPath}",
"args": [],
"cwd": "${workspaceFolder}"
}]
}

29
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,29 @@
{
"[cpp]": {
"files.encoding": "utf8",
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true
},
"[cmake]": {
"files.encoding": "utf8",
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true
},
"[python]": {
"files.encoding": "utf8",
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true
},
"clangd.arguments": [
"--all-scopes-completion",
"--background-index",
"--clang-tidy",
"--compile-commands-dir=${workspaceFolder}/.clangd",
"--completion-style=detailed",
"--header-insertion=never"
],
"cmake.copyCompileCommands": "${workspaceFolder}/.clangd/compile_commands.json"
}

View File

@@ -171,7 +171,7 @@ namespace
return false;
}
if ( k.is_key_just_pressed(keyboard_key::f12) ) {
if ( k.is_key_just_pressed(keyboard_key::f1) ) {
the<dbgui>().toggle_visible(!the<dbgui>().visible());
}

View File

@@ -222,7 +222,7 @@ namespace
return false;
}
if ( k.is_key_just_pressed(keyboard_key::f12) ) {
if ( k.is_key_just_pressed(keyboard_key::f1) ) {
the<dbgui>().toggle_visible(!the<dbgui>().visible());
}

View File

@@ -192,7 +192,7 @@ namespace
return false;
}
if ( k.is_key_just_pressed(keyboard_key::f12) ) {
if ( k.is_key_just_pressed(keyboard_key::f1) ) {
the<dbgui>().toggle_visible(!the<dbgui>().visible());
}

View File

@@ -25,7 +25,7 @@ namespace
E2D_UNUSED(owner, event);
const keyboard& k = the<input>().keyboard();
if ( k.is_key_just_released(keyboard_key::f12) ) {
if ( k.is_key_just_released(keyboard_key::f1) ) {
the<dbgui>().toggle_visible(!the<dbgui>().visible());
}

View File

@@ -18,7 +18,7 @@ namespace
E2D_UNUSED(owner, event);
const keyboard& k = the<input>().keyboard();
if ( k.is_key_just_released(keyboard_key::f12) ) {
if ( k.is_key_just_released(keyboard_key::f1) ) {
the<dbgui>().toggle_visible(!the<dbgui>().visible());
}

View File

@@ -48,7 +48,7 @@ namespace
return false;
}
if ( k.is_key_just_pressed(keyboard_key::f12) ) {
if ( k.is_key_just_pressed(keyboard_key::f1) ) {
the<dbgui>().toggle_visible(!the<dbgui>().visible());
}

View File

@@ -18,7 +18,7 @@ namespace
E2D_UNUSED(owner, event);
const keyboard& k = the<input>().keyboard();
if ( k.is_key_just_released(keyboard_key::f12) ) {
if ( k.is_key_just_released(keyboard_key::f1) ) {
the<dbgui>().toggle_visible(!the<dbgui>().visible());
}

View File

@@ -18,7 +18,7 @@ namespace
E2D_UNUSED(owner, event);
const keyboard& k = the<input>().keyboard();
if ( k.is_key_just_released(keyboard_key::f12) ) {
if ( k.is_key_just_released(keyboard_key::f1) ) {
the<dbgui>().toggle_visible(!the<dbgui>().visible());
}

View File

@@ -18,7 +18,7 @@ namespace
E2D_UNUSED(owner, event);
const keyboard& k = the<input>().keyboard();
if ( k.is_key_just_released(keyboard_key::f12) ) {
if ( k.is_key_just_released(keyboard_key::f1) ) {
the<dbgui>().toggle_visible(!the<dbgui>().visible());
}

View File

@@ -18,7 +18,7 @@ namespace
E2D_UNUSED(owner, event);
const keyboard& k = the<input>().keyboard();
if ( k.is_key_just_released(keyboard_key::f12) ) {
if ( k.is_key_just_released(keyboard_key::f1) ) {
the<dbgui>().toggle_visible(!the<dbgui>().visible());
}