Gamepad support
This commit is contained in:
parent
87f841e8e1
commit
ed369cf718
24 changed files with 240 additions and 78 deletions
10
scripts/gamepad/ExplosionVibration.cs
Normal file
10
scripts/gamepad/ExplosionVibration.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
using Godot;
|
||||
using System;
|
||||
|
||||
public partial class ExplosionVibration : Node
|
||||
{
|
||||
public override void _EnterTree()
|
||||
{
|
||||
Input.StartJoyVibration(GamepadHandler.Instance.CurrentDevice, 0, 1,0.25f);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue