mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 19:14:59 +02:00
Add user activity tracking for OculusLegacyDisplayPlugin
This commit is contained in:
parent
2621add8e3
commit
2233b5ba64
2 changed files with 8 additions and 0 deletions
|
@ -36,6 +36,12 @@ const QString OculusLegacyDisplayPlugin::NAME("Oculus Rift");
|
|||
OculusLegacyDisplayPlugin::OculusLegacyDisplayPlugin() {
|
||||
}
|
||||
|
||||
void OculusDisplayPlugin::init() {
|
||||
Plugin::init();
|
||||
|
||||
emit deviceConnected(getName());
|
||||
}
|
||||
|
||||
void OculusLegacyDisplayPlugin::resetSensors() {
|
||||
ovrHmd_RecenterPose(_hmd);
|
||||
}
|
||||
|
|
|
@ -23,6 +23,8 @@ public:
|
|||
bool isSupported() const override;
|
||||
const QString& getName() const override { return NAME; }
|
||||
|
||||
void init() override;
|
||||
|
||||
int getHmdScreen() const override;
|
||||
|
||||
// Stereo specific methods
|
||||
|
|
Loading…
Reference in a new issue