Proper input layering with console

This commit is contained in:
2025-03-18 01:25:09 +02:00
parent 19cda04372
commit e564cf36a8
6 changed files with 113 additions and 51 deletions

View File

@@ -1,7 +1,7 @@
{
"ID": "cb74184545f392e5c67815808bc63e58",
"TypeName": "FlaxEngine.Prefab",
"EngineBuild": 6332,
"EngineBuild": 6606,
"Data": [
{
"ID": "9e1b61dc44338f962e69f78ecb3d0536",
@@ -28,7 +28,9 @@
"B": 0.0,
"A": 1.0
},
"ConsoleFont": "43f32bec443158643f53699f07b2e09c"
"ConsoleFont": "43f32bec443158643f53699f07b2e09c",
"InputSettingsGameplay": "8ec53dba4c238bfbea1d62922e612a4d",
"InputSettingsMenu": "d1c7e5f241c7c7602e84a39a31d6b532"
}
},
{
@@ -46,6 +48,9 @@
"Control": "FlaxEngine.GUI.Label",
"Data": {
"Text": "120fps",
"CaseOption": 0,
"Bold": false,
"Italic": false,
"TextColor": {
"R": 1.0,
"G": 1.0,
@@ -61,9 +66,10 @@
"HorizontalAlignment": 2,
"VerticalAlignment": 2,
"Wrapping": 0,
"BaseLinesGapScale": 1.0,
"Font": {
"Font": "43f32bec443158643f53699f07b2e09c",
"Size": 15
"Size": 15.0
},
"Material": null,
"Margin": {
@@ -115,6 +121,7 @@
"B": 0.0,
"A": 0.0
},
"BackgroundBrush": null,
"Enabled": true,
"Visible": true,
"AutoFocus": false

View File

@@ -0,0 +1,74 @@
{
"ID": "d1c7e5f241c7c7602e84a39a31d6b532",
"TypeName": "FlaxEditor.Content.Settings.InputSettings",
"EngineBuild": 6606,
"Data": {
"ActionMappings": [
{
"Name": "Exit",
"Mode": 1,
"Key": 27,
"MouseButton": 0,
"GamepadButton": 0,
"Gamepad": 0
},
{
"Name": "DebugTrigger1",
"Mode": 2,
"Key": 112,
"MouseButton": 0,
"GamepadButton": 0,
"Gamepad": 0
},
{
"Name": "DebugTrigger2",
"Mode": 2,
"Key": 113,
"MouseButton": 0,
"GamepadButton": 0,
"Gamepad": 0
},
{
"Name": "DebugTrigger3",
"Mode": 2,
"Key": 114,
"MouseButton": 0,
"GamepadButton": 0,
"Gamepad": 0
},
{
"Name": "Console",
"Mode": 1,
"Key": 220,
"MouseButton": 0,
"GamepadButton": 0,
"Gamepad": 0
},
{
"Name": "Console",
"Mode": 1,
"Key": 223,
"MouseButton": 0,
"GamepadButton": 0,
"Gamepad": 0
},
{
"Name": "Console",
"Mode": 1,
"Key": 192,
"MouseButton": 0,
"GamepadButton": 0,
"Gamepad": 0
},
{
"Name": "ClearConsole",
"Mode": 1,
"Key": 66,
"MouseButton": 0,
"GamepadButton": 0,
"Gamepad": 0
}
],
"AxisMappings": []
}
}