mirror of https://github.com/ppy/SDL3-CS.git
21 lines
500 B
C#
21 lines
500 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using System;
|
|
|
|
namespace SDL
|
|
{
|
|
[Typedef]
|
|
public enum SDL_HapticID : UInt32;
|
|
|
|
public static partial class SDL3
|
|
{
|
|
public static unsafe SDLArray<SDL_HapticID>? SDL_GetHaptics()
|
|
{
|
|
int count;
|
|
var array = SDL_GetHaptics(&count);
|
|
return SDLArray.Create(array, count);
|
|
}
|
|
}
|
|
}
|