Skip to content

Commit ad8f229

Browse files
Mark VcKanji and VcHangul as obsolete
1 parent 0905450 commit ad8f229

File tree

7 files changed

+32
-30
lines changed

7 files changed

+32
-30
lines changed

SharpHook/Data/KeyCode.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,10 +644,12 @@ public enum KeyCode : ushort
644644

645645
/// <summary>IME Kanji mode</summary>
646646
/// <remarks>Available on: Windows</remarks>
647+
[Obsolete("VcHanja should be used instead")]
647648
VcKanji = 0x0019,
648649

649650
/// <summary>IME Hangul mode</summary>
650651
/// <remarks>Available on: Windows, Linux</remarks>
652+
[Obsolete("VcKana should be used instead")]
651653
VcHangul = 0x00E9,
652654

653655
/// <summary>IME Junja mode</summary>

SharpHook/Data/MouseWheelEventData.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ public struct MouseWheelEventData : IEquatable<MouseWheelEventData>
4444
/// <value>The wheel delta.</value>
4545
/// <remarks>
4646
/// <para>
47-
/// On Windows this value is equal to the <c>WHEEL_DELTA</c> constant (<c>120</c>).
47+
/// On Windows, this value is equal to the <c>WHEEL_DELTA</c> constant (<c>120</c>).
4848
/// </para>
4949
/// <para>
50-
/// On macOS this value is the number of pixels per line.
50+
/// On macOS, this value is the number of pixels per line.
5151
/// </para>
5252
/// <para>
53-
/// On Linux this value is always equal to <c>100</c>.
53+
/// On Linux, this value is always equal to <c>100</c>.
5454
/// </para>
5555
/// </remarks>
5656
public ushort Delta;

SharpHook/EventSimulator.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public EventSimulator(IEventSimulationProvider? simulationProvider) =>
4343
/// The default delay is 50 milliseconds.
4444
/// </para>
4545
/// <para>
46-
/// On Windows and macOS this property is ignored.
46+
/// On Windows and macOS, this property is ignored.
4747
/// </para>
4848
/// </remarks>
4949
/// <exception cref="ArgumentOutOfRangeException">
@@ -98,7 +98,7 @@ public UioHookResult SimulateKeyRelease(KeyCode keyCode) =>
9898
/// surrogate pairs, e.g. emojis) is supported.
9999
/// </para>
100100
/// <para>
101-
/// On Windows text simulation should work correctly and consistently.
101+
/// On Windows, text simulation should work correctly and consistently.
102102
/// </para>
103103
/// <para>
104104
/// On macOS applications are not required to process text simulation, but most of them should handle it correctly.
@@ -247,7 +247,7 @@ public UioHookResult SimulateMouseMovementRelative(short x, short y) =>
247247
/// <returns>The result of the operation.</returns>
248248
/// <remarks>
249249
/// <para>
250-
/// On Windows the value <c>120</c> represents the default wheel step. As such, multiples of <c>120</c> can be used,
250+
/// On Windows, the value <c>120</c> represents the default wheel step. As such, multiples of <c>120</c> can be used,
251251
/// but it's not required. The value of <paramref name="type" /> is ignored.
252252
/// </para>
253253
/// <para>

SharpHook/IEventSimulator.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public interface IEventSimulator
2323
/// The default delay is 50 milliseconds.
2424
/// </para>
2525
/// <para>
26-
/// On Windows and macOS this property is ignored.
26+
/// On Windows and macOS, this property is ignored.
2727
/// </para>
2828
/// </remarks>
2929
/// <exception cref="ArgumentOutOfRangeException">
@@ -56,10 +56,10 @@ public interface IEventSimulator
5656
/// surrogate pairs, e.g. emojis) is supported.
5757
/// </para>
5858
/// <para>
59-
/// On Windows text simulation should work correctly and consistently.
59+
/// On Windows, text simulation should work correctly and consistently.
6060
/// </para>
6161
/// <para>
62-
/// On macOS applications are not required to process text simulation, but most of them should handle it correctly.
62+
/// On macOS, applications are not required to process text simulation, but most of them should handle it correctly.
6363
/// </para>
6464
/// <para>
6565
/// X11 doesn't support text simulation directly. Instead, for each character, an unused key code is remapped to
@@ -170,16 +170,16 @@ public interface IEventSimulator
170170
/// <returns>The result of the operation.</returns>
171171
/// <remarks>
172172
/// <para>
173-
/// On Windows the value <c>120</c> represents the default wheel step. As such, multiples of <c>120</c> can be used,
173+
/// On Windows, the value <c>120</c> represents the default wheel step. As such, multiples of <c>120</c> can be used,
174174
/// but it's not required. The value of <paramref name="type" /> is ignored.
175175
/// </para>
176176
/// <para>
177-
/// On macOS it's recommended to use values between <c>-10</c> and <c>10</c>. This will result in quite a small
177+
/// On macOS, it's recommended to use values between <c>-10</c> and <c>10</c>. This will result in quite a small
178178
/// scroll amount with pixel scrolling, so <see cref="MouseWheelScrollType.BlockScroll" /> is recommended for line
179179
/// scrolling instead of pixel scrolling.
180180
/// </para>
181181
/// <para>
182-
/// On Linux there is no fixed recommendation, but multiples of <c>100</c> can be used. The value of
182+
/// On Linux, there is no fixed recommendation, but multiples of <c>100</c> can be used. The value of
183183
/// <paramref name="type" /> is ignored.
184184
/// </para>
185185
/// </remarks>

SharpHook/Logging/LogEntryParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace SharpHook.Logging;
88
/// </summary>
99
/// <remarks>
1010
/// The log text is formatted using the <c>vsprintf</c> function from the C runtime and then the result is parsed to
11-
/// extract the arguments. This means that on Windows this class requires the Visual C++ Redistributable package to be
11+
/// extract the arguments. This means that on Windows, this class requires the Visual C++ Redistributable package to be
1212
/// installed.
1313
/// </remarks>
1414
[ExcludeFromCodeCoverage]

SharpHook/SharpHook.xml

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/native.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,13 @@ Mouse wheel simulation is a little more complex than other events.
201201
A positive `MouseWheelEventData.Rotation` value indicates scrolling up or left, and a negative value indicates scrolling
202202
down or right.
203203

204-
On Windows the value 120 represents the default wheel step. As such, multiples of 120 can be used as the
204+
On Windows, the value 120 represents the default wheel step. As such, multiples of 120 can be used as the
205205
rotation value, but it's not required. The value of `MouseWheelEventData.Type` is ignored.
206206

207-
On macOS it's recommended to use values between -10 and 10. This will result in quite a small scroll amount with pixel
207+
On macOS, it's recommended to use values between -10 and 10. This will result in quite a small scroll amount with pixel
208208
scrolling, so `MouseWheelScrollType.BlockScroll` is recommended for line scrolling instead of pixel scrolling.
209209

210-
On Linux there is no fixed recommendation, but multiples of 100 can be used. The value of `MouseWheelEventData.Type`
210+
On Linux, there is no fixed recommendation, but multiples of 100 can be used. The value of `MouseWheelEventData.Type`
211211
is ignored.
212212

213213
## Simulating Text Entry
@@ -224,7 +224,7 @@ slowly and is not guaranteed to be correct.
224224
`UioHook` contains the `SetPostTextDelayX11` method which can be used to increase (or decrease) the delay if needed -
225225
longer delays add consistency but may be more jarring to end users. `UioHook` also contains the `GetPostTextDelayX11`
226226
which can be used to get the currently configured delay – the default is 50 milliseconds. Delays are configurable on a
227-
nanosecond level. On Windows and macOS `SetPostTextDelayX11` does nothing, and `GetPostTextDelayX11` always returns 0.
227+
nanosecond level. On Windows and macOS, `SetPostTextDelayX11` does nothing, and `GetPostTextDelayX11` always returns 0.
228228
`IEventSimulator` contains the `TextSimulationDelayOnX11` property which is wrapper arount the aforementioned methods.
229229

230230
The methods described above are also defined in the `SharpHook.Providers.IEventSimulationProvider` interface.

0 commit comments

Comments
 (0)