Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErwin Coumans <blender@erwincoumans.com>2005-08-17 18:29:58 +0400
committerErwin Coumans <blender@erwincoumans.com>2005-08-17 18:29:58 +0400
commit72d60d7b6371fa0b3426ea0db3aecb45b9ae7a4a (patch)
tree4f5d4709bbc52d64b4b069e82419e03f0f65fc27 /source/gameengine/Ketsji/KX_MouseFocusSensor.h
parent8b060dd5adfe5d56f558e4a600717f2b755d8559 (diff)
added the "mouse over any", makes the sensor more useful
Diffstat (limited to 'source/gameengine/Ketsji/KX_MouseFocusSensor.h')
-rw-r--r--source/gameengine/Ketsji/KX_MouseFocusSensor.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/gameengine/Ketsji/KX_MouseFocusSensor.h b/source/gameengine/Ketsji/KX_MouseFocusSensor.h
index ff69c570d53..94b2fc72e6d 100644
--- a/source/gameengine/Ketsji/KX_MouseFocusSensor.h
+++ b/source/gameengine/Ketsji/KX_MouseFocusSensor.h
@@ -54,7 +54,7 @@ class KX_MouseFocusSensor : public SCA_MouseSensor
int startx,
int starty,
short int mousemode,
- bool focusmode,
+ int focusmode,
RAS_ICanvas* canvas,
KX_Scene* kxscene,
SCA_IObject* gameobj,
@@ -98,9 +98,9 @@ class KX_MouseFocusSensor : public SCA_MouseSensor
private:
/**
- * The focus mode. True for handling focus, false for not handling
- * it. */
- bool m_focusmode;
+ * The focus mode. 1 for handling focus, 0 for not handling, 2 for focus on any object
+ */
+ int m_focusmode;
/**
* Flags whether the previous test showed a mouse-over.
@@ -146,6 +146,7 @@ class KX_MouseFocusSensor : public SCA_MouseSensor
* scene. */
class KX_KetsjiEngine* m_engine;
+
/**
* The active canvas. The size of this canvas determines a part of
* the start position of the picking ray. */