mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
19 lines
468 B
C#
19 lines
468 B
C#
using Avalonia.Input;
|
|
using Mesen.Interop;
|
|
using System;
|
|
|
|
namespace Mesen.Utilities
|
|
{
|
|
public static class CursorImageExtensions
|
|
{
|
|
public static StandardCursorType ToStandardCursorType(this CursorImage cursor)
|
|
{
|
|
return cursor switch {
|
|
CursorImage.Hidden => StandardCursorType.None,
|
|
CursorImage.Cross => StandardCursorType.Cross,
|
|
CursorImage.Arrow => StandardCursorType.Arrow,
|
|
_ => throw new Exception("Unsupported icon type")
|
|
};
|
|
}
|
|
}
|
|
}
|