mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-10-20 12:41:40 +00:00
9 lines
305 B
C#
9 lines
305 B
C#
|
namespace Ryujinx.HLE.HOS.Services.Hid
|
||
|
{
|
||
|
struct Boolean32
|
||
|
{
|
||
|
private uint _value;
|
||
|
public static implicit operator bool(Boolean32 value) => (value._value & 1) != 0;
|
||
|
public static implicit operator Boolean32(bool value) => new Boolean32() { _value = value ? 1u : 0u };
|
||
|
}
|
||
|
}
|