Vibrate.cpp
1
// Copyright 2019 Arthur Sonzogni. All rights reserved.
2
// Use of this source code is governed by the MIT license that can be found in
3
// the LICENSE file.
4
5
#include <smk/Vibrate.hpp>
6
7
#ifdef __EMSCRIPTEN__
8
#include <emscripten/html5.h>
9
#endif
10
11
namespace
smk {
12
13
#ifdef __EMSCRIPTEN__
14
void
Vibrate(
int
ms) {
15
emscripten_vibrate(ms);
16
}
17
#else
18
void
Vibrate(
int
/*unused*/
) {}
19
#endif
20
21
}
// namespace smk