mirror of
https://github.com/raylib-cs/raylib-cs
synced 2025-09-09 03:01:41 -04:00
Rename Gestures enum to Gesture
This commit is contained in:
@@ -776,16 +776,16 @@ namespace Raylib_cs
|
|||||||
|
|
||||||
/// <summary>Enable a set of gestures using flags</summary>
|
/// <summary>Enable a set of gestures using flags</summary>
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern void SetGesturesEnabled(Gestures flags);
|
public static extern void SetGesturesEnabled(Gesture flags);
|
||||||
|
|
||||||
/// <summary>Check if a gesture have been detected</summary>
|
/// <summary>Check if a gesture have been detected</summary>
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
[return: MarshalAs(UnmanagedType.I1)]
|
[return: MarshalAs(UnmanagedType.I1)]
|
||||||
public static extern bool IsGestureDetected(Gestures gesture);
|
public static extern bool IsGestureDetected(Gesture gesture);
|
||||||
|
|
||||||
/// <summary>Get latest detected gesture</summary>
|
/// <summary>Get latest detected gesture</summary>
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern Gestures GetGestureDetected();
|
public static extern Gesture GetGestureDetected();
|
||||||
|
|
||||||
/// <summary>Get touch points count</summary>
|
/// <summary>Get touch points count</summary>
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
@@ -350,10 +350,10 @@ namespace Raylib_cs
|
|||||||
GAMEPAD_BUTTON_RIGHT_THUMB
|
GAMEPAD_BUTTON_RIGHT_THUMB
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Gestures
|
/// <summary>Gesture
|
||||||
/// NOTE: It could be used as flags to enable only some gestures</summary>
|
/// NOTE: It could be used as flags to enable only some gestures</summary>
|
||||||
[Flags]
|
[Flags]
|
||||||
public enum Gestures
|
public enum Gesture
|
||||||
{
|
{
|
||||||
GESTURE_NONE = 0,
|
GESTURE_NONE = 0,
|
||||||
GESTURE_TAP = 1,
|
GESTURE_TAP = 1,
|
||||||
|
Reference in New Issue
Block a user