BGE bug #17574 fixed: GE Text input doesn't register in 2.47. Force registration of keyboard sensor with no link as this is typically the setting for key logging.

This commit is contained in:
Benoit Bolsee 2008-09-07 19:58:37 +00:00
parent 1d41c27625
commit f3fc5a8b61

@ -781,6 +781,13 @@ void BL_ConvertSensors(struct Object* blenderobject,
"logic may be incorrect\n", sens->name, i+1, sens->totlinks, blenderobject->id.name+2);
}
}
// special case: Keyboard sensor with no link
// this combination is usually used for key logging.
if (sens->type == SENS_KEYBOARD && sens->totlinks == 0) {
// Force the registration so that the sensor runs
gamesensor->IncLink();
}
// done with gamesensor
gamesensor->Release();