Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_sensor_types.h
| Context not available. | |||||
| short mode; | short mode; | ||||
| short pad1; | short pad1; | ||||
| int axisflag; | int axisflag; | ||||
| int mask; | |||||
| } bRaySensor; | } bRaySensor; | ||||
| typedef struct bArmatureSensor { | typedef struct bArmatureSensor { | ||||
| Context not available. | |||||
| short axis_single; | short axis_single; | ||||
| int axisf; | int axisf; | ||||
| int button; | int button; | ||||
| int hat; | |||||
| int hatf; | |||||
| int precision; | int precision; | ||||
| } bJoystickSensor; | } bJoystickSensor; | ||||
| typedef struct bMovementSensor { | |||||
| int axisflag; | |||||
| int localflag; | |||||
| float threshold, pad; | |||||
| } bMovementSensor; | |||||
| /* bMouseSensor->type: uses blender event defines */ | /* bMouseSensor->type: uses blender event defines */ | ||||
| /* bMouseSensor->flag: only pulse for now */ | /* bMouseSensor->flag: only pulse for now */ | ||||
| Context not available. | |||||
| #define SENS_RAY_NEG_Z_AXIS 5 | #define SENS_RAY_NEG_Z_AXIS 5 | ||||
| //#define SENS_RAY_NEGATIVE_AXIS 1 | //#define SENS_RAY_NEGATIVE_AXIS 1 | ||||
| /* movementSensor->axisflag */ | |||||
| /* flip x and y to make y default!!! */ | |||||
| #define SENS_MOVEMENT_X_AXIS 0 | |||||
| #define SENS_MOVEMENT_Y_AXIS 1 | |||||
| #define SENS_MOVEMENT_Z_AXIS 2 | |||||
| #define SENS_MOVEMENT_NEG_X_AXIS 3 | |||||
| #define SENS_MOVEMENT_NEG_Y_AXIS 4 | |||||
| #define SENS_MOVEMENT_NEG_Z_AXIS 5 | |||||
| #define SENS_MOVEMENT_ALL_AXIS 6 | |||||
| /* movementSensor->localflag */ | |||||
| /* Flag to toggle local/global coordinates*/ | |||||
| #define SENS_MOVEMENT_LOCAL 1 | |||||
| /* bRadarSensor->axis */ | /* bRadarSensor->axis */ | ||||
| #define SENS_RADAR_X_AXIS 0 | #define SENS_RADAR_X_AXIS 0 | ||||
| #define SENS_RADAR_Y_AXIS 1 | #define SENS_RADAR_Y_AXIS 1 | ||||
| Context not available. | |||||
| #define SENS_ACTUATOR 12 | #define SENS_ACTUATOR 12 | ||||
| #define SENS_DELAY 13 | #define SENS_DELAY 13 | ||||
| #define SENS_ARMATURE 14 | #define SENS_ARMATURE 14 | ||||
| #define SENS_MOVEMENT 15 | |||||
| /* sensor->flag */ | /* sensor->flag */ | ||||
| #define SENS_SHOW 1 | #define SENS_SHOW 1 | ||||
| #define SENS_DEL 2 | #define SENS_DEL 2 | ||||
| Context not available. | |||||
| #define SENS_JOY_ANY_EVENT 1 | #define SENS_JOY_ANY_EVENT 1 | ||||
| #define SENS_JOY_BUTTON 0 /* axis type */ | #define SENS_JOY_BUTTON 0 /* axis type */ | ||||
| #define SENS_JOY_BUTTON_PRESSED 0 | |||||
| #define SENS_JOY_BUTTON_RELEASED 1 | |||||
| #define SENS_JOY_BUTTON_A 0 | |||||
| #define SENS_JOY_BUTTON_B 1 | |||||
| #define SENS_JOY_BUTTON_X 2 | |||||
| #define SENS_JOY_BUTTON_Y 3 | |||||
| #define SENS_JOY_BUTTON_BACK 4 | |||||
| #define SENS_JOY_BUTTON_GUIDE 5 | |||||
| #define SENS_JOY_BUTTON_START 6 | |||||
| #define SENS_JOY_BUTTON_STICK_LEFT 7 | |||||
| #define SENS_JOY_BUTTON_STICK_RIGHT 8 | |||||
| #define SENS_JOY_BUTTON_SHOULDER_LEFT 9 | |||||
| #define SENS_JOY_BUTTON_SHOULDER_RIGHT 10 | |||||
| #define SENS_JOY_BUTTON_DPAD_UP 11 | |||||
| #define SENS_JOY_BUTTON_DPAD_DOWN 12 | |||||
| #define SENS_JOY_BUTTON_DPAD_LEFT 13 | |||||
| #define SENS_JOY_BUTTON_DPAD_RIGHT 14 | |||||
| #define SENS_JOY_AXIS 1 /* axis type */ | #define SENS_JOY_AXIS 1 /* axis type */ | ||||
| #define SENS_JOY_LEFT_STICK 1 | |||||
| #define SENS_JOY_RIGHT_STICK 2 | |||||
| #define SENS_JOY_X_AXIS 0 | #define SENS_JOY_X_AXIS 0 | ||||
| #define SENS_JOY_Y_AXIS 1 | #define SENS_JOY_Y_AXIS 1 | ||||
| #define SENS_JOY_NEG_X_AXIS 2 | #define SENS_JOY_NEG_X_AXIS 2 | ||||
| #define SENS_JOY_NEG_Y_AXIS 3 | #define SENS_JOY_NEG_Y_AXIS 3 | ||||
| #define SENS_JOY_PRECISION 4 | #define SENS_JOY_PRECISION 4 | ||||
| #define SENS_JOY_HAT 2 /* axis type */ | #define SENS_JOY_HAT 2 /* axis type */ /* Unused all Hat related defines */ | ||||
| #define SENS_JOY_HAT_DIR 0 | #define SENS_JOY_HAT_DIR 0 | ||||
| #define SENS_JOY_HAT_UP 1 | #define SENS_JOY_HAT_UP 1 | ||||
| #define SENS_JOY_HAT_RIGHT 2 | #define SENS_JOY_HAT_RIGHT 2 | ||||
| Context not available. | |||||
| #define SENS_JOY_HAT_UP_LEFT SENS_JOY_HAT_UP | SENS_JOY_HAT_LEFT | #define SENS_JOY_HAT_UP_LEFT SENS_JOY_HAT_UP | SENS_JOY_HAT_LEFT | ||||
| #define SENS_JOY_HAT_DOWN_LEFT SENS_JOY_HAT_DOWN | SENS_JOY_HAT_LEFT | #define SENS_JOY_HAT_DOWN_LEFT SENS_JOY_HAT_DOWN | SENS_JOY_HAT_LEFT | ||||
| #define SENS_JOY_AXIS_SINGLE 3 /* axis type */ | #define SENS_JOY_AXIS_SINGLE 3 /* axis type */ | ||||
| #define SENS_JOY_LEFT_STICK_HORIZONTAL 1 | |||||
| #define SENS_JOY_LEFT_STICK_VERTICAL 2 | |||||
| #define SENS_JOY_RIGHT_STICK_HORIZONTAL 3 | |||||
| #define SENS_JOY_RIGHT_STICK_VERTICAL 4 | |||||
| #define SENS_JOY_SHOULDER_TRIGGER 4 /* axis type */ | |||||
| #define SENS_JOY_LEFT_SHOULDER_TRIGGER 1 | |||||
| #define SENS_JOY_RIGHT_SHOULDER_TRIGGER 2 | |||||
| #define SENS_DELAY_REPEAT 1 | #define SENS_DELAY_REPEAT 1 | ||||
| // should match JOYINDEX_MAX in SCA_JoystickDefines.h */ | // should match JOYINDEX_MAX in SCA_JoystickDefines.h */ | ||||
| Context not available. | |||||