Skip to content

Commit c8fc574

Browse files
authored
Update README.md
1 parent 6391a8d commit c8fc574

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,8 @@ A. Yes, use ``DevConsole.RemoveCommand()`` to remove almost any command. There a
119119

120120
<b>Q. How can I stop keyboard input in the dev console from triggering game-specific actions (e.g. space will make the character jump even though the input field is focused)?</b></br>
121121
A. As far as I know, this is an unavoidable issue. I recommend making a global property for your game (e.g. ``AllowGameInput``) which you can query before performing any game-specific input. This property can then reference ``DevConsole.IsOpenAndFocused``, effectively disabling game-specific input when the dev console is open and the input field is focused.
122-
</br>You can also set ``DevConsole.IsKeyBindingsEnabled`` to toggle key bindings - for example, if the user is in a text field.
123122
```cs
124-
public static bool AllowGameInput => DevConsole.IsOpenAndFocused;
123+
public static bool AllowGameInput => !DevConsole.IsOpenAndFocused;
125124

126125
private void CheckGameInput()
127126
{

0 commit comments

Comments
 (0)