Fix alt fire on joystick right
parent
54ddc63fbe
commit
4c780da552
|
@ -238,7 +238,6 @@ public sealed partial class Player : Character
|
||||||
switch (inputMethod)
|
switch (inputMethod)
|
||||||
{
|
{
|
||||||
case State.Global.InputMethod.Joystick:
|
case State.Global.InputMethod.Joystick:
|
||||||
GD.Print(joystick);
|
|
||||||
if (joystick.IsZeroApprox())
|
if (joystick.IsZeroApprox())
|
||||||
{
|
{
|
||||||
return Direction;
|
return Direction;
|
||||||
|
|
|
@ -100,7 +100,7 @@ attack1={
|
||||||
attack2={
|
attack2={
|
||||||
"deadzone": 0.5,
|
"deadzone": 0.5,
|
||||||
"events": [Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"button_mask":0,"position":Vector2(0, 0),"global_position":Vector2(0, 0),"factor":1.0,"button_index":2,"canceled":false,"pressed":false,"double_click":false,"script":null)
|
"events": [Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"button_mask":0,"position":Vector2(0, 0),"global_position":Vector2(0, 0),"factor":1.0,"button_index":2,"canceled":false,"pressed":false,"double_click":false,"script":null)
|
||||||
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":2,"axis_value":1.0,"script":null)
|
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":4,"axis_value":1.0,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
equip={
|
equip={
|
||||||
|
|
Loading…
Reference in New Issue