Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/view3d_walk.c
| Context not available. | |||||
| #ifdef WITH_INPUT_NDOF | #ifdef WITH_INPUT_NDOF | ||||
| //# define NDOF_WALK_DEBUG | //# define NDOF_WALK_DEBUG | ||||
| //# define NDOF_WALK_DRAW_TOOMUCH /* is this needed for ndof? - commented so redraw doesnt thrash - campbell */ | //# define NDOF_WALK_DRAW_TOOMUCH /* is this needed for ndof? - commented so redraw doesn't thrash - campbell */ | ||||
| #endif | #endif | ||||
| #define USE_TABLET_SUPPORT | #define USE_TABLET_SUPPORT | ||||
| Context not available. | |||||
| ray_start, ray_normal, r_distance, | ray_start, ray_normal, r_distance, | ||||
| r_location, r_normal_dummy); | r_location, r_normal_dummy); | ||||
| /* artifically scale the distance to the scene size */ | /* artificially scale the distance to the scene size */ | ||||
| *r_distance /= walk->grid; | *r_distance /= walk->grid; | ||||
| return ret; | return ret; | ||||
| } | } | ||||
| Context not available. | |||||
| negate_v3(r_normal); | negate_v3(r_normal); | ||||
| } | } | ||||
| /* artifically scale the distance to the scene size */ | /* artificially scale the distance to the scene size */ | ||||
| *ray_distance /= walk->grid; | *ray_distance /= walk->grid; | ||||
| return ret; | return ret; | ||||
| Context not available. | |||||
| /* speed factor */ | /* speed factor */ | ||||
| y *= WALK_ROTATE_FAC; | y *= WALK_ROTATE_FAC; | ||||
| /* user adjustement factor */ | /* user adjustment factor */ | ||||
| y *= walk->mouse_speed; | y *= walk->mouse_speed; | ||||
| /* clamp the angle limits */ | /* clamp the angle limits */ | ||||
| Context not available. | |||||
| /* speed factor */ | /* speed factor */ | ||||
| x *= WALK_ROTATE_FAC; | x *= WALK_ROTATE_FAC; | ||||
| /* user adjustement factor */ | /* user adjustment factor */ | ||||
| x *= walk->mouse_speed; | x *= walk->mouse_speed; | ||||
| /* Rotate about the relative up vec */ | /* Rotate about the relative up vec */ | ||||
| Context not available. | |||||