diff options
Diffstat (limited to 'source/blender/makesdna/DNA_sensor_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_sensor_types.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/makesdna/DNA_sensor_types.h b/source/blender/makesdna/DNA_sensor_types.h index 1fd97fe0158..d8a1ffc6c24 100644 --- a/source/blender/makesdna/DNA_sensor_types.h +++ b/source/blender/makesdna/DNA_sensor_types.h @@ -163,12 +163,12 @@ typedef struct bSensor { typedef struct bJoystickSensor { char name[32]; - short type; - short joyindex; + char type; + char joyindex; + short flag; int axis; int axisf; int button; - int buttonf; int hat; int hatf; int precision; @@ -252,6 +252,8 @@ typedef struct bJoystickSensor { #define BL_SENS_MOUSE_MOUSEOVER 16 #define BL_SENS_MOUSE_MOUSEOVER_ANY 32 +#define SENS_JOY_ANY_EVENT 1 + #define SENS_JOY_BUTTON 0 #define SENS_JOY_BUTTON_PRESSED 0 #define SENS_JOY_BUTTON_RELEASED 1 @@ -266,6 +268,7 @@ typedef struct bJoystickSensor { #define SENS_JOY_HAT 2 #define SENS_JOY_HAT_DIR 0 + #define SENS_DELAY_REPEAT 1 // should match JOYINDEX_MAX in SCA_JoystickDefines.h */ #define SENS_JOY_MAXINDEX 8 |