SLProject  4.3.020
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
SENSAndroidOrientation.cpp
Go to the documentation of this file.
2 #include <jni.h>
3 #include <assert.h>
4 #include <Utils.h>
5 
7 {
8  _running = true;
9  return true;
10 }
11 
13 {
14  if (!_running)
15  return;
16  _running = false;
17 }
18 
20 {
21  if (_running)
22  setOrientation(orientation);
23 }
void updateOrientation(const Quat &orientation)
void setOrientation(Quat orientation)