mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 04:08:55 +02:00
Signed/unsigned fix.
This commit is contained in:
parent
064f784db1
commit
f1145272eb
1 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ void SixenseManager::update(float deltaTime) {
|
||||||
// Either find a palm matching the sixense controller, or make a new one
|
// Either find a palm matching the sixense controller, or make a new one
|
||||||
PalmData* palm;
|
PalmData* palm;
|
||||||
bool foundHand = false;
|
bool foundHand = false;
|
||||||
for (int j = 0; j < hand->getNumPalms(); j++) {
|
for (size_t j = 0; j < hand->getNumPalms(); j++) {
|
||||||
if (hand->getPalms()[j].getSixenseID() == data.controller_index) {
|
if (hand->getPalms()[j].getSixenseID() == data.controller_index) {
|
||||||
palm = &(hand->getPalms()[j]);
|
palm = &(hand->getPalms()[j]);
|
||||||
foundHand = true;
|
foundHand = true;
|
||||||
|
@ -128,7 +128,7 @@ void SixenseManager::update(float deltaTime) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// if the controllers haven't been moved in a while, disable
|
// if the controllers haven't been moved in a while, disable
|
||||||
const int MOVEMENT_DISABLE_DURATION = 30 * 1000 * 1000;
|
const unsigned int MOVEMENT_DISABLE_DURATION = 30 * 1000 * 1000;
|
||||||
if (usecTimestampNow() - _lastMovement > MOVEMENT_DISABLE_DURATION) {
|
if (usecTimestampNow() - _lastMovement > MOVEMENT_DISABLE_DURATION) {
|
||||||
for (vector<PalmData>::iterator it = hand->getPalms().begin(); it != hand->getPalms().end(); it++) {
|
for (vector<PalmData>::iterator it = hand->getPalms().begin(); it != hand->getPalms().end(); it++) {
|
||||||
it->setActive(false);
|
it->setActive(false);
|
||||||
|
|
Loading…
Reference in a new issue