~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/blender/makesdna/DNA_sensor_types.h

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
2
 * blenlib/DNA_sensor_types.h (mar-2001 nzc)
3
3
 *      
4
 
 * $Id: DNA_sensor_types.h,v 1.6 2004/05/02 23:45:00 kester Exp $ 
 
4
 * $Id: DNA_sensor_types.h,v 1.7 2005/01/23 01:36:29 kester Exp $ 
5
5
 *
6
6
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
7
7
 *
151
151
        int pad;
152
152
} bSensor;
153
153
 
 
154
typedef struct bJoystickSensor {
 
155
        char name[32];
 
156
        short type;
 
157
        short pad;
 
158
        int axis;
 
159
        int axisf;
 
160
        int button;
 
161
        int buttonf;
 
162
        int hat;
 
163
        int hatf;
 
164
        int precision;
 
165
} bJoystickSensor;
 
166
 
154
167
/* bMouseSensor->type: uses blender event defines */
155
168
 
156
169
/* propertysensor->type */
186
199
#define SENS_RANDOM     8
187
200
#define SENS_RAY        9
188
201
#define SENS_MESSAGE   10
189
 
 
 
202
#define SENS_JOYSTICK  11
190
203
/* sensor->flag */
191
204
#define SENS_SHOW               1
192
205
#define SENS_DEL                2
196
209
/* sensor->pulse */
197
210
#define SENS_PULSE_CONT         0
198
211
#define SENS_PULSE_REPEAT       1
199
 
#define SENS_PULSE_ONCE         2
 
212
//#define SENS_PULSE_ONCE       2
200
213
#define SENS_NEG_PULSE_MODE 4
201
214
 
202
215
/* sensor->suppress */
224
237
#define BL_SENS_MOUSE_MOVEMENT       8
225
238
#define BL_SENS_MOUSE_MOUSEOVER      16
226
239
 
 
240
#define SENS_JOY_BUTTON         0
 
241
#define SENS_JOY_BUTTON_PRESSED 0
 
242
#define SENS_JOY_BUTTON_RELEASED        1
 
243
 
 
244
#define SENS_JOY_AXIS                   1
 
245
#define SENS_JOY_X_AXIS         0
 
246
#define SENS_JOY_Y_AXIS         1
 
247
#define SENS_JOY_NEG_X_AXIS             2
 
248
#define SENS_JOY_NEG_Y_AXIS             3
 
249
#define SENS_JOY_PRECISION              4
 
250
 
 
251
#define SENS_JOY_HAT                    2
 
252
#define SENS_JOY_HAT_DIR                0
 
253
 
227
254
#endif
228
255