Input singleton contains functions to work with player input (including mouse, keyboard, and touch screen). Players can rebind their action bindings in their settings menu.
Ex:
Airship.Input.CreateAction("Attack", Binding.MouseButton(MouseButton.LeftButton));Airship.Input.OnDown("Attack").Connect(() => { print("Attacked!");}); Copy
Airship.Input.CreateAction("Attack", Binding.MouseButton(MouseButton.LeftButton));Airship.Input.OnDown("Attack").Connect(() => { print("Attacked!");});
Input singleton contains functions to work with player input (including mouse, keyboard, and touch screen). Players can rebind their action bindings in their settings menu.
Ex: