mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-13 07:45:39 +07:00
change sample debug key to f1
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,6 +1,5 @@
|
|||||||
.vs/*
|
|
||||||
.vscode/*
|
|
||||||
build/*
|
build/*
|
||||||
|
.clangd/*
|
||||||
.DS_Store
|
.DS_Store
|
||||||
CMakeSettings.json
|
CMakeSettings.json
|
||||||
CMakeLists.txt.user
|
CMakeLists.txt.user
|
||||||
|
|||||||
11
.vscode/launch.json
vendored
Normal file
11
.vscode/launch.json
vendored
Normal 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
29
.vscode/settings.json
vendored
Normal 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"
|
||||||
|
}
|
||||||
@@ -171,7 +171,7 @@ namespace
|
|||||||
return false;
|
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());
|
the<dbgui>().toggle_visible(!the<dbgui>().visible());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -222,7 +222,7 @@ namespace
|
|||||||
return false;
|
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());
|
the<dbgui>().toggle_visible(!the<dbgui>().visible());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ namespace
|
|||||||
return false;
|
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());
|
the<dbgui>().toggle_visible(!the<dbgui>().visible());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ namespace
|
|||||||
E2D_UNUSED(owner, event);
|
E2D_UNUSED(owner, event);
|
||||||
const keyboard& k = the<input>().keyboard();
|
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());
|
the<dbgui>().toggle_visible(!the<dbgui>().visible());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ namespace
|
|||||||
E2D_UNUSED(owner, event);
|
E2D_UNUSED(owner, event);
|
||||||
const keyboard& k = the<input>().keyboard();
|
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());
|
the<dbgui>().toggle_visible(!the<dbgui>().visible());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ namespace
|
|||||||
return false;
|
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());
|
the<dbgui>().toggle_visible(!the<dbgui>().visible());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ namespace
|
|||||||
E2D_UNUSED(owner, event);
|
E2D_UNUSED(owner, event);
|
||||||
const keyboard& k = the<input>().keyboard();
|
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());
|
the<dbgui>().toggle_visible(!the<dbgui>().visible());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ namespace
|
|||||||
E2D_UNUSED(owner, event);
|
E2D_UNUSED(owner, event);
|
||||||
const keyboard& k = the<input>().keyboard();
|
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());
|
the<dbgui>().toggle_visible(!the<dbgui>().visible());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ namespace
|
|||||||
E2D_UNUSED(owner, event);
|
E2D_UNUSED(owner, event);
|
||||||
const keyboard& k = the<input>().keyboard();
|
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());
|
the<dbgui>().toggle_visible(!the<dbgui>().visible());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ namespace
|
|||||||
E2D_UNUSED(owner, event);
|
E2D_UNUSED(owner, event);
|
||||||
const keyboard& k = the<input>().keyboard();
|
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());
|
the<dbgui>().toggle_visible(!the<dbgui>().visible());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user