41 #ifndef VRPNBUTTONDEVICE_H
42 #define VRPNBUTTONDEVICE_H
45 #include <glm/glm.hpp>
52 #include <boost/log/trivial.hpp>
53 #define BOOST_ASSERT_MSG_OSTREAM std::cout
54 #include <boost/assert.hpp>
57 class vrpn_Button_Remote;
68 InputDeviceVRPNButton(
const std::string &vrpnButtonDeviceName,
const std::vector<std::string> &eventsToGenerate);
75 std::string getEventName(
int buttonNumber);
76 void sendEvent(
int buttonNumber,
bool down);
79 vrpn_Button_Remote *_vrpnDevice;
80 std::vector<std::string> _eventNames;
81 std::vector<EventRef> _pendingEvents;
83 InputDeviceVRPNButton(
const std::string &vrpnButtonDeviceName,
const std::vector<std::string> &eventsToGenerate)
85 BOOST_ASSERT_MSG(
false,
"VRPN is currently unsupported. Set cmake option USE_VRPN to ON and recompile.");
89 BOOST_ASSERT_MSG(
false,
"VRPN is currently unsupported. Set cmake option USE_VRPN to ON and recompile.");
94 #endif // USE_VRPN defined