代码拉取完成,页面将自动刷新
同步操作将从 ianaxe/vrpn 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
///////////////////////////////////////////////////////////////////////////////////////////////
//
// Name: vrpn_Tracker_zSight.h
//
// Authors: David Borland
// Josep Maria Tomas Sanahuja
//
// EventLab at the University of Barcelona
//
// Description: VRPN tracker class for Sensics zSight HMD with built-in tracker. The tracker
// reports only orientation information, no position. It is interfaced to as
// a DirectX joystick, so VRPN_USE_DIRECTINPUT must be defined in
// vrpn_Configure.h to use it.
//
///////////////////////////////////////////////////////////////////////////////////////////////
#ifndef VRPN_TRACKER_ZSIGHT
#define VRPN_TRACKER_ZSIGHT
// Make sure Direct Input is being used and atlbase is available for CComPtr.
#include "vrpn_Configure.h" // IWYU pragma: keep
#if defined(_WIN32) && defined(VRPN_USE_DIRECTINPUT) && defined(VRPN_HAVE_ATLBASE)
#include "vrpn_Tracker.h"
#ifndef DIRECTINPUT_VERSION
#define DIRECTINPUT_VERSION 0x0800
#endif
#include <Winsvc.h>
#include <atlbase.h>
#include <dinput.h>
#include <windows.h>
class vrpn_Tracker_zSight : public vrpn_Tracker {
public:
// Constructor
//
// name: VRPN tracker name
//
// c: VRPN connection to use
//
vrpn_Tracker_zSight(const char* name, vrpn_Connection* c);
~vrpn_Tracker_zSight();
/// This function should be called each time through the main loop
/// of the server code. It checks for a report from the tracker and
/// sends it if there is one.
virtual void mainloop();
protected:
// VRPN tracker functions for generating and sending reports
virtual void get_report();
virtual void send_report();
// Initialize the device
HRESULT InitDevice();
// Callbacks for Direct Input
static BOOL CALLBACK EnumSensicsCallback(const DIDEVICEINSTANCE* pdidInstance, VOID* selfPtr);
static BOOL CALLBACK EnumObjectsCallback(const DIDEVICEOBJECTINSTANCE* pdidoi, VOID* selfPtr);
// Handle to the console window
HWND hWnd;
// The Direct Input and device handles
CComPtr<IDirectInput8> directInput;
CComPtr<IDirectInputDevice8> sensics;
};
#endif
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。