User Input
// Define an action
Airship.Input.CreateAction("Jump", Binding.Key(Key.Space));
// Listen to using the action
Airship.Input.OnDown("Jump").Connect(() => {
print("Jump pressed")
});// Listening for key down:
Keyboard.OnKeyDown(Key.E, (event) => {
print("Key E down");
});
// Checking if a key is currently down:
if (Keyboard.IsKeyDown(Key.E)) print("Key E down");Last updated