mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
Changes to make compatible with VRPN 07.03
This commit is contained in:
parent
24cfaaea3f
commit
73b717f47c
@ -112,7 +112,7 @@ write(ostream &out, int indent_level) const {
|
||||
// code and sends it to any interested
|
||||
// VrpnAnalogDevices.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void VrpnAnalog::
|
||||
void VRPN_CALLBACK VrpnAnalog::
|
||||
vrpn_analog_callback(void *userdata, const vrpn_ANALOGCB info) {
|
||||
VrpnAnalog *self = (VrpnAnalog *)userdata;
|
||||
|
||||
|
@ -60,7 +60,7 @@ public:
|
||||
void write(ostream &out, int indent_level = 0) const;
|
||||
|
||||
private:
|
||||
static void
|
||||
static void VRPN_CALLBACK
|
||||
vrpn_analog_callback(void *userdata, const vrpn_ANALOGCB info);
|
||||
|
||||
private:
|
||||
|
@ -112,7 +112,7 @@ write(ostream &out, int indent_level) const {
|
||||
// code and sends it to any interested
|
||||
// VrpnButtonDevices.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void VrpnButton::
|
||||
void VRPN_CALLBACK VrpnButton::
|
||||
vrpn_button_callback(void *userdata, const vrpn_BUTTONCB info) {
|
||||
VrpnButton *self = (VrpnButton *)userdata;
|
||||
if (vrpn_cat.is_debug()) {
|
||||
|
@ -60,7 +60,7 @@ public:
|
||||
void write(ostream &out, int indent_level = 0) const;
|
||||
|
||||
private:
|
||||
static void
|
||||
static void VRPN_CALLBACK
|
||||
vrpn_button_callback(void *userdata, const vrpn_BUTTONCB info);
|
||||
|
||||
private:
|
||||
|
@ -867,7 +867,7 @@ poll_dial(const string &dial) {
|
||||
// Description: Callback function that merely passes the data down
|
||||
// to the appropriate non-static function
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void VrpnClient::
|
||||
void VRPN_CALLBACK VrpnClient::
|
||||
st_tracker_position(void *userdata, const vrpn_TRACKERCB info) {
|
||||
VrpnClientInfo *data = (VrpnClientInfo *)userdata;
|
||||
((VrpnClient *)data->self)->tracker_position(data->device_name, info);
|
||||
@ -879,7 +879,7 @@ st_tracker_position(void *userdata, const vrpn_TRACKERCB info) {
|
||||
// Description: Callback function that merely passes the data down
|
||||
// to the appropriate non-static function
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void VrpnClient::
|
||||
void VRPN_CALLBACK VrpnClient::
|
||||
st_tracker_velocity(void *userdata, const vrpn_TRACKERVELCB info) {
|
||||
VrpnClientInfo *data = (VrpnClientInfo *)userdata;
|
||||
((VrpnClient *)data->self)->tracker_velocity(data->device_name, info);
|
||||
@ -890,7 +890,7 @@ st_tracker_velocity(void *userdata, const vrpn_TRACKERVELCB info) {
|
||||
// Description: Callback function that merely passes the data down
|
||||
// to the appropriate non-static function
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void VrpnClient::
|
||||
void VRPN_CALLBACK VrpnClient::
|
||||
st_tracker_acceleration(void *userdata, const vrpn_TRACKERACCCB info) {
|
||||
VrpnClientInfo *data = (VrpnClientInfo *)userdata;
|
||||
((VrpnClient *)data->self)->tracker_acceleration(data->device_name, info);
|
||||
|
@ -112,7 +112,7 @@ write(ostream &out, int indent_level) const {
|
||||
// code and sends it to any interested
|
||||
// VrpnDialDevices.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void VrpnDial::
|
||||
void VRPN_CALLBACK VrpnDial::
|
||||
vrpn_dial_callback(void *userdata, const vrpn_DIALCB info) {
|
||||
VrpnDial *self = (VrpnDial *)userdata;
|
||||
|
||||
|
@ -60,7 +60,7 @@ public:
|
||||
void write(ostream &out, int indent_level = 0) const;
|
||||
|
||||
private:
|
||||
static void
|
||||
static void VRPN_CALLBACK
|
||||
vrpn_dial_callback(void *userdata, const vrpn_DIALCB info);
|
||||
|
||||
private:
|
||||
|
@ -114,7 +114,7 @@ write(ostream &out, int indent_level) const {
|
||||
// code and sends it to any interested
|
||||
// VrpnTrackerDevices.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void VrpnTracker::
|
||||
void VRPN_CALLBACK VrpnTracker::
|
||||
vrpn_position_callback(void *userdata, const vrpn_TRACKERCB info) {
|
||||
VrpnTracker *self = (VrpnTracker *)userdata;
|
||||
if (vrpn_cat.is_spam()) {
|
||||
@ -143,7 +143,7 @@ vrpn_position_callback(void *userdata, const vrpn_TRACKERCB info) {
|
||||
// code and sends it to any interested
|
||||
// VrpnTrackerDevices.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void VrpnTracker::
|
||||
void VRPN_CALLBACK VrpnTracker::
|
||||
vrpn_velocity_callback(void *userdata, const vrpn_TRACKERVELCB info) {
|
||||
VrpnTracker *self = (VrpnTracker *)userdata;
|
||||
if (vrpn_cat.is_spam()) {
|
||||
@ -174,7 +174,7 @@ vrpn_velocity_callback(void *userdata, const vrpn_TRACKERVELCB info) {
|
||||
// code and sends it to any interested
|
||||
// VrpnTrackerDevices.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void VrpnTracker::
|
||||
void VRPN_CALLBACK VrpnTracker::
|
||||
vrpn_acceleration_callback(void *userdata, const vrpn_TRACKERACCCB info) {
|
||||
VrpnTracker *self = (VrpnTracker *)userdata;
|
||||
if (vrpn_cat.is_spam()) {
|
||||
|
@ -59,11 +59,11 @@ public:
|
||||
void write(ostream &out, int indent_level = 0) const;
|
||||
|
||||
private:
|
||||
static void
|
||||
static void VRPN_CALLBACK
|
||||
vrpn_position_callback(void *userdata, const vrpn_TRACKERCB info);
|
||||
static void
|
||||
static void VRPN_CALLBACK
|
||||
vrpn_velocity_callback(void *userdata, const vrpn_TRACKERVELCB info);
|
||||
static void
|
||||
static void VRPN_CALLBACK
|
||||
vrpn_acceleration_callback(void *userdata, const vrpn_TRACKERACCCB info);
|
||||
|
||||
private:
|
||||
|
Loading…
x
Reference in New Issue
Block a user