Kehom / GodotAddonPack

A collection of pure GDScript addons for Godot
http://kehomsforge.com
MIT License
183 stars 15 forks source link

Add option to enable/disable local input #23

Closed yuraj11 closed 3 years ago

yuraj11 commented 3 years ago

Because this library does not use _unhandled_input and uses directly Input.* it also interferes with GUI when you are typing something in UI, e.g. useful when you have chat in game overlay and you want to temporarly disable input while typing.

Usage: network.set_local_input_enabled(true/false)

Kehom commented 3 years ago

Nice! The only change I would do is rename the local_input_enabled to _local_input_enabled since there is "public access" to it through the network.set_local_input_enabled() function.

yuraj11 commented 3 years ago

Ok done.