Skip to content

Commit

Permalink
Add the new file to the build.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne authored and vs-mobiletools-engineering-service2 committed May 31, 2024
1 parent d3efb8f commit 382ece8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/GameController/GCMouse.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#nullable enable

using System;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;

using ObjCRuntime;
using Foundation;
Expand All @@ -22,20 +24,30 @@ public GCMouse (NSCoder coder) : base (NSObjectFlag.Empty)
}

[Export ("encodeWithCoder:")]
#if NET
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos14.0")]
[SupportedOSPlatform ("maccatalyst")]
#endif
[BindingImpl (BindingImplOptions.Optimizable)]
[EditorBrowsable (EditorBrowsableState.Never)]
public virtual void EncodeTo (NSCoder encoder)
{
var encoder__handle__ = encoder!.GetNonNullHandle (nameof (encoder));
#if NET
if (IsDirectBinding) {
global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
} else {
global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
}
#else
if (IsDirectBinding) {
global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
} else {
global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
}
#endif
}
}
#endif // !XAMCORE_5_0
Expand Down
1 change: 1 addition & 0 deletions src/frameworks.sources
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,7 @@ GAMECONTROLLER_SOURCES = \
GameController/GCExtendedGamepadSnapshot.cs \
GameController/GCGamepadSnapshot.cs \
GameController/GCMicroGamepadSnapshot.cs \
GameController/GCMouse.cs \

# GameKit

Expand Down

0 comments on commit 382ece8

Please sign in to comment.