Les fleches c'est pour les noobs.
This commit is contained in:
parent
25fe5ee634
commit
8f177ffa0e
@ -23,6 +23,15 @@ public partial class player : Camera3D
|
|||||||
Vector3 rot = this.Rotation;
|
Vector3 rot = this.Rotation;
|
||||||
bool zin = true, zout = true;
|
bool zin = true, zout = true;
|
||||||
|
|
||||||
|
if (Input.IsActionPressed("CamNorth"))
|
||||||
|
_mUp = true;
|
||||||
|
if (Input.IsActionPressed("CamSouth"))
|
||||||
|
_mDown = true;
|
||||||
|
if (Input.IsActionPressed("CamEast"))
|
||||||
|
_mRight = true;
|
||||||
|
if (Input.IsActionPressed("CamWest"))
|
||||||
|
_mLeft = true;
|
||||||
|
|
||||||
this.Rotation -= rot;
|
this.Rotation -= rot;
|
||||||
if (this.Position.Y < 5)
|
if (this.Position.Y < 5)
|
||||||
zin = false;
|
zin = false;
|
||||||
@ -67,5 +76,6 @@ public partial class player : Camera3D
|
|||||||
else if (mousebtn.ButtonIndex == MouseButton.WheelDown)
|
else if (mousebtn.ButtonIndex == MouseButton.WheelDown)
|
||||||
_wOut = true;
|
_wOut = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,3 +23,30 @@ window/size/viewport_height=1080
|
|||||||
[dotnet]
|
[dotnet]
|
||||||
|
|
||||||
project/assembly_name="Mad"
|
project/assembly_name="Mad"
|
||||||
|
|
||||||
|
[input]
|
||||||
|
|
||||||
|
CamNorth={
|
||||||
|
"deadzone": 0.5,
|
||||||
|
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":87,"key_label":0,"unicode":0,"echo":false,"script":null)
|
||||||
|
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194320,"key_label":0,"unicode":0,"echo":false,"script":null)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
CamSouth={
|
||||||
|
"deadzone": 0.5,
|
||||||
|
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":83,"key_label":0,"unicode":115,"echo":false,"script":null)
|
||||||
|
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194322,"key_label":0,"unicode":0,"echo":false,"script":null)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
CamWest={
|
||||||
|
"deadzone": 0.5,
|
||||||
|
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":65,"key_label":0,"unicode":97,"echo":false,"script":null)
|
||||||
|
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194319,"key_label":0,"unicode":0,"echo":false,"script":null)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
CamEast={
|
||||||
|
"deadzone": 0.5,
|
||||||
|
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":68,"key_label":0,"unicode":100,"echo":false,"script":null)
|
||||||
|
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194321,"key_label":0,"unicode":0,"echo":false,"script":null)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user