Skip to content

Commit 079a4dd

Browse files
committed
Fixed typo with modifier keys
1 parent c3085fc commit 079a4dd

7 files changed

+15
-15
lines changed

GLFW.NET/CharEventArgs.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class CharEventArgs : EventArgs
1515
/// </summary>
1616
/// <param name="codePoint">A UTF-32 code point.</param>
1717
/// <param name="mods">The modifier keys present.</param>
18-
public CharEventArgs(uint codePoint, ModiferKeys mods)
18+
public CharEventArgs(uint codePoint, ModifierKeys mods)
1919
{
2020
CodePoint = codePoint;
2121
ModifierKeys = mods;
@@ -48,7 +48,7 @@ public CharEventArgs(uint codePoint, ModiferKeys mods)
4848
/// <value>
4949
/// The modifier keys.
5050
/// </value>
51-
public ModiferKeys ModifierKeys { get; }
51+
public ModifierKeys ModifierKeys { get; }
5252

5353
#endregion
5454
}

GLFW.NET/Delegates.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ namespace GLFW
7979
/// <param name="modifiers">Flags describing which modifier keys were held down.</param>
8080
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
8181
public delegate void MouseButtonCallback(IntPtr window, MouseButton button, InputState state,
82-
ModiferKeys modifiers);
82+
ModifierKeys modifiers);
8383

8484
/// <summary>
8585
/// This is the function signature for Unicode character callback functions.
@@ -96,7 +96,7 @@ public delegate void MouseButtonCallback(IntPtr window, MouseButton button, Inpu
9696
/// <param name="codePoint">The Unicode code point of the character.</param>
9797
/// <param name="mods">Bit field describing which modifier keys were held down.</param>
9898
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
99-
public delegate void CharModsCallback(IntPtr window, uint codePoint, ModiferKeys mods);
99+
public delegate void CharModsCallback(IntPtr window, uint codePoint, ModifierKeys mods);
100100

101101
/// <summary>
102102
/// This is the function signature for keyboard key callback functions.
@@ -107,7 +107,7 @@ public delegate void MouseButtonCallback(IntPtr window, MouseButton button, Inpu
107107
/// <param name="state">The state of the key.</param>
108108
/// <param name="mods"> Bit field describing which modifier keys were held down.</param>
109109
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
110-
public delegate void KeyCallback(IntPtr window, Keys key, int scanCode, InputState state, ModiferKeys mods);
110+
public delegate void KeyCallback(IntPtr window, Keys key, int scanCode, InputState state, ModifierKeys mods);
111111

112112
/// <summary>
113113
/// This is the function signature for joystick configuration callback functions.

GLFW.NET/Enums/InputMode.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ public enum InputMode
2727

2828
/// <summary>
2929
/// When this input mode is enabled, any callback that receives modifier bits will have the
30-
/// <see cref="ModiferKeys.CapsLock" /> bit set if caps lock was on when the event occurred and the
31-
/// <see cref="ModiferKeys.NumLock" /> bit set if num lock was on.
30+
/// <see cref="ModifierKeys.CapsLock" /> bit set if caps lock was on when the event occurred and the
31+
/// <see cref="ModifierKeys.NumLock" /> bit set if num lock was on.
3232
/// </summary>
3333
LockKeyMods = 0x00033004,
3434

GLFW.NET/Enums/ModiferKeys.cs renamed to GLFW.NET/Enums/ModifierKeys.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace GLFW
66
/// Describes bitwise combination of modifier keys.
77
/// </summary>
88
[Flags]
9-
public enum ModiferKeys
9+
public enum ModifierKeys
1010
{
1111
/// <summary>
1212
/// Either of the Shift keys.

GLFW.NET/KeyEventArgs.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class KeyEventArgs : EventArgs
1717
/// <param name="scanCode">The platform scan code of the key.</param>
1818
/// <param name="state">The state of the key.</param>
1919
/// <param name="mods">The modifier keys.</param>
20-
public KeyEventArgs(Keys key, int scanCode, InputState state, ModiferKeys mods)
20+
public KeyEventArgs(Keys key, int scanCode, InputState state, ModifierKeys mods)
2121
{
2222
Key = key;
2323
ScanCode = scanCode;
@@ -43,7 +43,7 @@ public KeyEventArgs(Keys key, int scanCode, InputState state, ModiferKeys mods)
4343
/// <value>
4444
/// The modifiers.
4545
/// </value>
46-
public ModiferKeys Modifiers { get; }
46+
public ModifierKeys Modifiers { get; }
4747

4848
/// <summary>
4949
/// Gets the platform scan code for the key.

GLFW.NET/MouseButtonEventArgs.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class MouseButtonEventArgs : EventArgs
1616
/// <param name="button">The mouse button.</param>
1717
/// <param name="state">The state of the <paramref name="button" />.</param>
1818
/// <param name="modifiers">The modifier keys.</param>
19-
public MouseButtonEventArgs(MouseButton button, InputState state, ModiferKeys modifiers)
19+
public MouseButtonEventArgs(MouseButton button, InputState state, ModifierKeys modifiers)
2020
{
2121
Button = button;
2222
Action = state;
@@ -49,7 +49,7 @@ public MouseButtonEventArgs(MouseButton button, InputState state, ModiferKeys mo
4949
/// <value>
5050
/// The modifiers.
5151
/// </value>
52-
public ModiferKeys Modifiers { get; }
52+
public ModifierKeys Modifiers { get; }
5353

5454
#endregion
5555
}

GLFW.NET/NativeWindow.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ private void OnFileDrop(int count, IntPtr pointer)
836836
/// </summary>
837837
/// <param name="codePoint">The Unicode code point.</param>
838838
/// <param name="mods">The modifier keys present.</param>
839-
protected virtual void OnCharacterInput(uint codePoint, ModiferKeys mods)
839+
protected virtual void OnCharacterInput(uint codePoint, ModifierKeys mods)
840840
{
841841
CharacterInput?.Invoke(this, new CharEventArgs(codePoint, mods));
842842
}
@@ -900,7 +900,7 @@ protected virtual void OnFramebufferSizeChanged(int width, int height)
900900
/// <seealso cref="KeyRelease" />
901901
/// <seealso cref="KeyRepeat" />
902902
/// <seealso cref="KeyAction" />
903-
protected virtual void OnKey(Keys key, int scanCode, InputState state, ModiferKeys mods)
903+
protected virtual void OnKey(Keys key, int scanCode, InputState state, ModifierKeys mods)
904904
{
905905
var args = new KeyEventArgs(key, scanCode, state, mods);
906906
if (state.HasFlag(InputState.Press))
@@ -918,7 +918,7 @@ protected virtual void OnKey(Keys key, int scanCode, InputState state, ModiferKe
918918
/// <param name="button">The mouse button.</param>
919919
/// <param name="state">The state of the mouse button.</param>
920920
/// <param name="modifiers">The modifier keys.</param>
921-
protected virtual void OnMouseButton(MouseButton button, InputState state, ModiferKeys modifiers)
921+
protected virtual void OnMouseButton(MouseButton button, InputState state, ModifierKeys modifiers)
922922
{
923923
MouseButton?.Invoke(this, new MouseButtonEventArgs(button, state, modifiers));
924924
}

0 commit comments

Comments
 (0)