mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 18:35:04 +02:00
Moving SIXENSE_CONTROLLER_ID* constants into header to help eliminate magic numbers in other code (to be committed later).
This commit is contained in:
parent
32f3621855
commit
76e8eb2bfc
2 changed files with 3 additions and 3 deletions
|
@ -38,9 +38,6 @@ PalmData& HandData::addNewPalm() {
|
|||
return _palms.back();
|
||||
}
|
||||
|
||||
const int SIXENSE_CONTROLLER_ID_LEFT_HAND = 0;
|
||||
const int SIXENSE_CONTROLLER_ID_RIGHT_HAND = 1;
|
||||
|
||||
const PalmData* HandData::getPalm(int sixSenseID) const {
|
||||
// the palms are not necessarily added in left-right order,
|
||||
// so we have to search for the right SixSenseID
|
||||
|
|
|
@ -35,6 +35,9 @@ const int BUTTON_FWD = 128;
|
|||
|
||||
const float LEAP_UNIT_SCALE = 0.001f; ///< convert mm to meters
|
||||
|
||||
const int SIXENSE_CONTROLLER_ID_LEFT_HAND = 0;
|
||||
const int SIXENSE_CONTROLLER_ID_RIGHT_HAND = 1;
|
||||
|
||||
class HandData {
|
||||
public:
|
||||
HandData(AvatarData* owningAvatar);
|
||||
|
|
Loading…
Reference in a new issue