36 INLINE
void set_forward_speed(PN_stdfloat speed);
37 INLINE PN_stdfloat get_forward_speed()
const;
38 INLINE
void set_reverse_speed(PN_stdfloat speed);
39 INLINE PN_stdfloat get_reverse_speed()
const;
40 INLINE
void set_rotate_speed(PN_stdfloat speed);
41 INLINE PN_stdfloat get_rotate_speed()
const;
42 INLINE
void set_vertical_dead_zone(PN_stdfloat zone);
43 INLINE PN_stdfloat get_vertical_dead_zone()
const;
44 INLINE
void set_horizontal_dead_zone(PN_stdfloat zone);
45 INLINE PN_stdfloat get_horizontal_dead_zone()
const;
47 INLINE
void set_vertical_ramp_up_time(PN_stdfloat ramp_up_time);
48 INLINE PN_stdfloat get_vertical_ramp_up_time()
const;
49 INLINE
void set_vertical_ramp_down_time(PN_stdfloat ramp_down_time);
50 INLINE PN_stdfloat get_vertical_ramp_down_time()
const;
51 INLINE
void set_horizontal_ramp_up_time(PN_stdfloat ramp_up_time);
52 INLINE PN_stdfloat get_horizontal_ramp_up_time()
const;
53 INLINE
void set_horizontal_ramp_down_time(PN_stdfloat ramp_down_time);
54 INLINE PN_stdfloat get_horizontal_ramp_down_time()
const;
56 INLINE PN_stdfloat get_speed()
const;
57 INLINE PN_stdfloat get_rot_speed()
const;
63 INLINE
const LPoint3 &get_pos()
const;
64 INLINE PN_stdfloat get_x()
const;
65 INLINE PN_stdfloat get_y()
const;
66 INLINE PN_stdfloat get_z()
const;
67 INLINE
void set_pos(
const LVecBase3 &vec);
68 INLINE
void set_pos(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z);
69 INLINE
void set_x(PN_stdfloat x);
70 INLINE
void set_y(PN_stdfloat y);
71 INLINE
void set_z(PN_stdfloat z);
75 INLINE
const LVecBase3 &get_hpr()
const;
76 INLINE PN_stdfloat get_h()
const;
77 INLINE PN_stdfloat get_p()
const;
78 INLINE PN_stdfloat get_r()
const;
79 INLINE
void set_hpr(
const LVecBase3 &hpr);
80 INLINE
void set_hpr(PN_stdfloat h, PN_stdfloat p, PN_stdfloat r);
81 INLINE
void set_h(PN_stdfloat h);
82 INLINE
void set_p(PN_stdfloat p);
83 INLINE
void set_r(PN_stdfloat r);
85 void set_force_roll(PN_stdfloat force_roll);
87 INLINE
void set_ignore_mouse(
bool ignore_mouse);
88 INLINE
bool get_ignore_mouse()
const;
90 INLINE
void set_force_mouse(
bool force_mouse);
91 INLINE
bool get_force_mouse()
const;
93 INLINE
void set_stop_this_frame(
bool stop_this_frame);
94 INLINE
bool get_stop_this_frame()
const;
96 void set_mat(
const LMatrix4 &mat);
97 const LMatrix4 &get_mat();
102 void apply(
double x,
double y,
bool any_button);
104 PN_stdfloat _forward_speed;
105 PN_stdfloat _reverse_speed;
106 PN_stdfloat _rotate_speed;
107 PN_stdfloat _vertical_dead_zone;
108 PN_stdfloat _horizontal_dead_zone;
109 PN_stdfloat _vertical_center;
110 PN_stdfloat _horizontal_center;
114 PN_stdfloat _vertical_ramp_up_time;
115 PN_stdfloat _vertical_ramp_down_time;
116 PN_stdfloat _horizontal_ramp_up_time;
117 PN_stdfloat _horizontal_ramp_down_time;
120 PN_stdfloat _rot_speed;
127 bool _stop_this_frame;
137 PN_stdfloat get_effect(PN_stdfloat ramp_up_time, PN_stdfloat ramp_down_time);
138 void set_key(
bool down);
140 bool operator < (
const KeyHeld &other)
const;
144 double _changed_time;
145 PN_stdfloat _effect_at_change;
147 KeyHeld _up_arrow, _down_arrow;
148 KeyHeld _left_arrow, _right_arrow;
160 int _button_events_input;
163 int _transform_output;
164 int _velocity_output;
173 static const PN_stdfloat _hpr_quantize;
179 static void init_type() {
180 MouseInterfaceNode::init_type();
182 MouseInterfaceNode::get_class_type());
185 return get_class_type();
187 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}