Ybalrid / Annwvyn

Annwvyn C++ Open Source designed-for-VR game engine and application developement framework
MIT License
41 stars 7 forks source link

Hash the identifier strings of the hand controllers #136

Closed Ybalrid closed 7 years ago

Ybalrid commented 7 years ago

Prevent doing a string compare when checking the type of an AnnHandController.

Currently you need to do thins kind of things with std::string::operator==() :

if (controller->getType() == "Oculus Touch")