diff options
author | Erwin Coumans <blender@erwincoumans.com> | 2005-08-17 18:29:58 +0400 |
---|---|---|
committer | Erwin Coumans <blender@erwincoumans.com> | 2005-08-17 18:29:58 +0400 |
commit | 72d60d7b6371fa0b3426ea0db3aecb45b9ae7a4a (patch) | |
tree | 4f5d4709bbc52d64b4b069e82419e03f0f65fc27 /source/gameengine/Converter/KX_ConvertSensors.cpp | |
parent | 8b060dd5adfe5d56f558e4a600717f2b755d8559 (diff) |
added the "mouse over any", makes the sensor more useful
Diffstat (limited to 'source/gameengine/Converter/KX_ConvertSensors.cpp')
-rw-r--r-- | source/gameengine/Converter/KX_ConvertSensors.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/gameengine/Converter/KX_ConvertSensors.cpp b/source/gameengine/Converter/KX_ConvertSensors.cpp index 450f4c0b523..4bd1e3d5469 100644 --- a/source/gameengine/Converter/KX_ConvertSensors.cpp +++ b/source/gameengine/Converter/KX_ConvertSensors.cpp @@ -422,7 +422,7 @@ void BL_ConvertSensors(struct Object* blenderobject, case SENS_MOUSE: { int keytype = SCA_MouseSensor::KX_MOUSESENSORMODE_NODEF; - bool trackfocus = false; + int trackfocus = 0; bMouseSensor *bmouse = (bMouseSensor *)sens->data; /* There are two main types of mouse sensors. If there is @@ -455,8 +455,12 @@ void BL_ConvertSensors(struct Object* blenderobject, keytype = SCA_MouseSensor::KX_MOUSESENSORMODE_MOVEMENT; break; case BL_SENS_MOUSE_MOUSEOVER: - trackfocus = true; + trackfocus = 1; break; + case BL_SENS_MOUSE_MOUSEOVER_ANY: + trackfocus = 2; + break; + default: ; /* error */ } |