#Conditional Hooks

$Application: FS2_Open

$On Game Init: [
require 'thrust_sound'
]

$State: GS_STATE_GAME_PLAY


$KeyPress: a
$On Key Pressed: [
ad.playSound(ad.getSoundentry("leftstart"))
thrust_sound:start("left")
]

$KeyPress: a
$On Key Released: [
thrust_sound:stop("left")
]

$KeyPress: d
$On Key Pressed: [
ad.playSound(ad.getSoundentry("rightstart"))
thrust_sound:start("right")
]

$KeyPress: d
$On Key Released: [
thrust_sound:stop("right")
]

$KeyPress: s
$On Key Pressed: [
ad.playSound(ad.getSoundentry("revstart"))
thrust_sound:start("rev")
]

$KeyPress: s
$On Key Released: [
thrust_sound:stop("rev")
]

$KeyPress: Left Ctrl
$On Key Pressed: [
ad.playSound(ad.getSoundentry("downstart"))
thrust_sound:start("down")
]

$KeyPress: Left Ctrl
$On Key Released: [
thrust_sound:stop("down")
]

$KeyPress: space
$On Key Pressed: [
ad.playSound(ad.getSoundentry("upstart"))
thrust_sound:start("up")
]

$KeyPress: space
$On Key Released: [
thrust_sound:stop("up")
] 

#End
