Add binds for more sounds

This commit is contained in:
Malin E
2021-12-16 10:57:35 +01:00
parent 59933a542c
commit c1e090f812
3 changed files with 32 additions and 0 deletions

View File

@@ -156,4 +156,12 @@ asset.onInitialize(function()
"openspace.setPropertyValueSingle('ScreenSpace.ufo.CartesianPosition', {-3.0, 0.5, -2.000000}, 4.0)",
"UFO"
);
-- Houston
openspace.navigation.bindJoystickButton(
name,
controller.LeftButton,
"openspace.printInfo('Houston button pressed')",
"Houston"
);
end)

View File

@@ -69,4 +69,12 @@ asset.onInitialize(function()
"openspace.setPropertyValueSingle('ScreenSpace.sputnik.CartesianPosition', {3.0, 1.0, -2.000000}, 6.0)",
"Sputnik"
);
-- Red Alert
openspace.navigation.bindJoystickButton(
name,
controller.LeftStickButton,
"openspace.printInfo('Red Alert pressed')",
"Red Alert"
);
end)

View File

@@ -268,4 +268,20 @@ asset.onInitialize(function()
"openspace.setPropertyValueSingle('ScreenSpace.sputnik.CartesianPosition', {3.0, 1.0, -2.000000}, 6.0)",
"Sputnik"
);
-- Houston
openspace.navigation.bindJoystickButton(
name,
controller.Joystick.C,
"openspace.printInfo('Houston button pressed')",
"Houston"
);
-- Red Alert
openspace.navigation.bindJoystickButton(
name,
controller.Joystick.Mode3,
"openspace.printInfo('Red Alert pressed')",
"Red Alert"
);
end)