mirror of
https://github.com/libretro/MesenCE.git
synced 2026-11-10 11:11:32 -10:00
20 lines
468 B
C#
20 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")
|
|
};
|
|
}
|
|
}
|
|
}
|