~ Fix linux build

~ Fix dopler example
This commit is contained in:
REMqb
2019-05-19 17:17:37 +02:00
parent ab5188c57d
commit 350a1cf09f
2 changed files with 5 additions and 1 deletions

View File

@@ -70,7 +70,7 @@ int main()
std::cout << "Sound position: " << pos << std::endl;
// Si la position de la source atteint une certaine position, ou si l'utilisateur appuie sur echap
if (pos.x > Nz::Vector3f::Left().x*-50.f || Nz::Keyboard::IsKeyPressed(Nz::Keyboard::Escape))
if (pos.x > Nz::Vector3f::Left().x*-50.f || Nz::Keyboard::IsKeyPressed(Nz::Keyboard::VKey::Escape))
sound.Stop(); // On arrête le son (Stoppant également la boucle)
clock.Restart();