~ubuntu-branches/ubuntu/lucid/blender/lucid

« back to all changes in this revision

Viewing changes to source/gameengine/GameLogic/SCA_MouseSensor.h

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2009-08-06 22:32:19 UTC
  • mfrom: (1.2.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090806223219-8z4eej1u8levu4pz
Tags: 2.49a+dfsg-0ubuntu1
* Merge from debian unstable, remaining changes:
  - debian/control: Build-depend on python-2.6 rather than python-2.5.
  - debian/misc/*.desktop: Add Spanish translation to .desktop 
    files.
  - debian/pyversions: 2.6.
  - debian/rules: Clean *.o of source/blender/python/api2_2x/
* New upstream release (LP: #382153).
* Refreshed patches:
  - 01_sanitize_sys.patch
  - 02_tmp_in_HOME
  - 10_use_systemwide_ftgl
  - 70_portability_platform_detection
* Removed patches merged upstream:
  - 30_fix_python_syntax_warning
  - 90_ubuntu_ffmpeg_52_changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
2
 * Senses mouse events
3
3
 *
4
 
 * $Id: SCA_MouseSensor.h 15444 2008-07-05 17:05:05Z lukep $
 
4
 * $Id: SCA_MouseSensor.h 20130 2009-05-10 20:53:58Z ben2610 $
5
5
 *
6
6
 * ***** BEGIN GPL LICENSE BLOCK *****
7
7
 *
24
24
 *
25
25
 * The Original Code is: all of this file.
26
26
 *
27
 
 * Contributor(s): none yet.
 
27
 * Contributor(s): José I. Romero (cleanup and fixes)
28
28
 *
29
29
 * ***** END GPL LICENSE BLOCK *****
30
30
 */
58
58
        SCA_IInputDevice::KX_EnumInputs m_hotkey;
59
59
        
60
60
        /**
61
 
         * valid x coordinate
 
61
         * valid x coordinate, MUST be followed by y coordinate
62
62
         */
63
63
        short m_x;
64
64
 
87
87
 
88
88
        bool isValid(KX_MOUSESENSORMODE);
89
89
        
 
90
        static int UpdateHotkey(void *self, const PyAttributeDef*);
 
91
        
90
92
        SCA_MouseSensor(class SCA_MouseManager* keybdmgr,
91
93
                                        int startx,int starty,
92
94
                                   short int mousemode,
95
97
 
96
98
        virtual ~SCA_MouseSensor();
97
99
        virtual CValue* GetReplica();
98
 
        virtual bool Evaluate(CValue* event);
 
100
        virtual bool Evaluate();
99
101
        virtual void Init();
100
102
        virtual bool IsPositiveTrigger();
101
103
        short int GetModeKey();
107
109
        /* Python interface ---------------------------------------------------- */
108
110
        /* --------------------------------------------------------------------- */
109
111
 
110
 
        virtual PyObject* _getattr(const STR_String& attr);
 
112
        virtual PyObject* py_getattro(PyObject *attr);
 
113
        virtual PyObject* py_getattro_dict();
 
114
        virtual int py_setattro(PyObject *attr, PyObject *value);
111
115
 
 
116
        //Deprecated functions ----->
112
117
        /* read x-coordinate */
113
 
        KX_PYMETHOD_DOC(SCA_MouseSensor,GetXPosition);
 
118
        KX_PYMETHOD_DOC_NOARGS(SCA_MouseSensor,GetXPosition);
114
119
        /* read y-coordinate */
115
 
        KX_PYMETHOD_DOC(SCA_MouseSensor,GetYPosition);
 
120
        KX_PYMETHOD_DOC_NOARGS(SCA_MouseSensor,GetYPosition);
 
121
        //<----- deprecated
 
122
        
 
123
        // get button status
 
124
        KX_PYMETHOD_DOC_O(SCA_MouseSensor,getButtonStatus);
116
125
 
117
126
};
118
127