Watch
2
0
Fork
You've already forked raylib-cs
0

SetGamepadVibration method added

This commit is contained in:
JupiterRider 2024-12-06 18:14:36 +01:00
commit 5586fcae6f

View file

@ -805,6 +805,9 @@ public static unsafe partial class Raylib
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int SetGamepadMappings(sbyte* mappings); public static extern int SetGamepadMappings(sbyte* mappings);
/// <summary>Set gamepad vibration for both motors (duration in seconds)</summary>
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void SetGamepadVibration(int gamepad, float leftMotor, float rightMotor, float duration);
// Input-related functions: mouse // Input-related functions: mouse