fix spell error

This commit is contained in:
Youmu Liu
2025-11-11 18:44:03 +08:00
parent 44bf78b937
commit bbe69f0384
4 changed files with 21 additions and 21 deletions
+16 -16
View File
@@ -171,22 +171,22 @@ namespace StgSharp
#pragma warning restore CA1027 #pragma warning restore CA1027
{ {
Joystick_1 = FrameworkConstant.GLFW_JOYSTICK_1, Joystick_1 = FrameworkConstant. JOYSTICK_1,
Joystick_2 = FrameworkConstant.GLFW_JOYSTICK_2, Joystick_2 = FrameworkConstant. JOYSTICK_2,
Joystick_3 = FrameworkConstant.GLFW_JOYSTICK_3, Joystick_3 = FrameworkConstant. JOYSTICK_3,
Joystick_4 = FrameworkConstant.GLFW_JOYSTICK_4, Joystick_4 = FrameworkConstant. JOYSTICK_4,
Joystick_5 = FrameworkConstant.GLFW_JOYSTICK_5, Joystick_5 = FrameworkConstant. JOYSTICK_5,
Joystick_6 = FrameworkConstant.GLFW_JOYSTICK_6, Joystick_6 = FrameworkConstant. JOYSTICK_6,
Joystick_7 = FrameworkConstant.GLFW_JOYSTICK_7, Joystick_7 = FrameworkConstant. JOYSTICK_7,
Joystick_8 = FrameworkConstant.GLFW_JOYSTICK_8, Joystick_8 = FrameworkConstant. JOYSTICK_8,
Joystick_9 = FrameworkConstant.GLFW_JOYSTICK_9, Joystick_9 = FrameworkConstant. JOYSTICK_9,
Joystick_10 = FrameworkConstant.GLFW_JOYSTICK_10, Joystick_10 = FrameworkConstant.JOYSTICK_10,
Joystick_11 = FrameworkConstant.GLFW_JOYSTICK_11, Joystick_11 = FrameworkConstant.JOYSTICK_11,
Joystick_12 = FrameworkConstant.GLFW_JOYSTICK_12, Joystick_12 = FrameworkConstant.JOYSTICK_12,
Joystick_13 = FrameworkConstant.GLFW_JOYSTICK_13, Joystick_13 = FrameworkConstant.JOYSTICK_13,
Joystick_14 = FrameworkConstant.GLFW_JOYSTICK_14, Joystick_14 = FrameworkConstant.JOYSTICK_14,
Joystick_15 = FrameworkConstant.GLFW_JOYSTICK_15, Joystick_15 = FrameworkConstant.JOYSTICK_15,
Joystick_16 = FrameworkConstant.GLFW_JOYSTICK_16, Joystick_16 = FrameworkConstant.JOYSTICK_16,
First = Joystick_1, First = Joystick_1,
Last = Joystick_16 Last = Joystick_16
@@ -26,6 +26,7 @@
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
using StgSharp.Graphics; using StgSharp.Graphics;
using StgSharp.Graphics.OpenGL;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
+4 -4
View File
@@ -287,8 +287,8 @@ namespace StgSharp.Internal
private IntPtr cursor; // _GLFWcursor* cursor; private IntPtr cursor; // _GLFWcursor* cursor;
// glfwVideomode videoMode; // 根据GLFWvidmode的定义转换 // glfwVideomode videoMode; // 根据GLFWvidmode的定义转换
private IntPtr monitor; // _GLFWmonitor* monitor; private IntPtr monitor; // _GLFWmonitor* monitor;
public fixed byte keys[FrameworkConstant.GLFW_KEY_LAST + 1]; public fixed byte keys[FrameworkConstant.KEY_LAST + 1];
public fixed byte mouseButtons[FrameworkConstant.GLFW_MOUSE_BUTTON_LAST + 1]; public fixed byte mouseButtons[FrameworkConstant.MOUSE_BUTTON_LAST + 1];
// _GLFWcontext viewPortDisplay; // 根据_GLFWcontext的定义转换 // _GLFWcontext viewPortDisplay; // 根据_GLFWcontext的定义转换
@@ -497,8 +497,8 @@ namespace StgSharp.Internal
internal unsafe struct GLFWlibrary internal unsafe struct GLFWlibrary
{ {
[MarshalAs(UnmanagedType.ByValArray, SizeConst = FrameworkConstant.GLFW_JOYSTICK_LAST + 1)] [MarshalAs(UnmanagedType.ByValArray, SizeConst = FrameworkConstant.JOYSTICK_LAST + 1)]
private GLFWjoystick[] joysticks = new GLFWjoystick[FrameworkConstant.GLFW_JOYSTICK_LAST + 1]; private GLFWjoystick[] joysticks = new GLFWjoystick[FrameworkConstant.JOYSTICK_LAST + 1];
private GLFWallocator allocator; private GLFWallocator allocator;
-1
View File
@@ -25,7 +25,6 @@
// //
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
using StgSharp.Entities;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;