You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Removal of InputEvent as built-in Variant type..
this might cause bugs I haven't found yet..
This commit is contained in:
@@ -33,10 +33,10 @@
|
||||
void MeshEditor::_gui_input(InputEvent p_event) {
|
||||
|
||||
|
||||
if (p_event.type==InputEvent::MOUSE_MOTION && p_event.mouse_motion.button_mask&BUTTON_MASK_LEFT) {
|
||||
if (p_event.type==InputEvent::MOUSE_MOTION && p_event->get_button_mask()&BUTTON_MASK_LEFT) {
|
||||
|
||||
rot_x-=p_event.mouse_motion.relative_y*0.01;
|
||||
rot_y-=p_event.mouse_motion.relative_x*0.01;
|
||||
rot_x-=p_event->get_relative().y*0.01;
|
||||
rot_y-=p_event->get_relative().x*0.01;
|
||||
if (rot_x<-Math_PI/2)
|
||||
rot_x=-Math_PI/2;
|
||||
else if (rot_x>Math_PI/2) {
|
||||
|
||||
Reference in New Issue
Block a user