Improve commands
This commit is contained in:
@@ -185,6 +185,10 @@ export class Client {
|
||||
if (InputManager.is_key_pressed(options.key_chat) && !this.screen) {
|
||||
this.push_screen(new GuiChat(this));
|
||||
}
|
||||
// straight into a command, like minecraft
|
||||
if (InputManager.is_key_pressed("Slash") && !this.screen) {
|
||||
this.push_screen(new GuiChat(this, "/"));
|
||||
}
|
||||
// browsers eat the escape that lets go of the mouse, so losing the mouse pauses too
|
||||
const lost_mouse = InputManager.take_lost_pointer_lock();
|
||||
if (InputManager.is_key_pressed("Escape")) {
|
||||
|
||||
Reference in New Issue
Block a user