mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-23 05:19:18 -06:00
Add binds for more sounds
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user