-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdriverlog.h
More file actions
24 lines (16 loc) · 844 Bytes
/
driverlog.h
File metadata and controls
24 lines (16 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//========= Copyright Valve Corporation ============//
#ifndef DRIVERLOG_H
#define DRIVERLOG_H
#pragma once
#include <string>
#include <openvr_driver.h>
extern void DriverLog( const char *pchFormat, ... );
// --------------------------------------------------------------------------
// Purpose: Write to the log file only in debug builds
// --------------------------------------------------------------------------
extern void DebugDriverLog( const char *pchFormat, ... );
extern bool InitDriverLog( vr::IDriverLog *pDriverLog );
extern void CleanupDriverLog();
/** Retrieves a string property from the IClientHost interface */
std::string GetTrackedDeviceString( vr::IClientDriverHost *pClientHost, vr::TrackedDeviceIndex_t unDevice, vr::ETrackedDeviceProperty prop, vr::ETrackedPropertyError *peError = NULL );
#endif // DRIVERLOG_H