forked from MeloNX/MeloNX
Expose Accelerometer & Gyro Functions
This commit is contained in:
parent
a6a75a4208
commit
af4f7b9ee7
@ -117,7 +117,7 @@ namespace LibRyujinx
|
||||
[UnmanagedCallersOnly(EntryPoint = "graphics_renderer_set_size")]
|
||||
public static void SetRendererSizeNative(int width, int height)
|
||||
{
|
||||
Renderer?.Window?.SetSize(width, height);
|
||||
SetRendererSize(width, height);
|
||||
}
|
||||
|
||||
public static void SetRendererSize(int width, int height)
|
||||
|
@ -244,6 +244,18 @@ namespace LibRyujinx
|
||||
SetButtonReleased(button, id);
|
||||
}
|
||||
|
||||
[UnmanagedCallersOnly(EntryPoint = "input_set_accelerometer_data")]
|
||||
public static void SetAccelerometerDataNative(Vector3 accel, int id)
|
||||
{
|
||||
SetAccelerometerData(accel, id);
|
||||
}
|
||||
|
||||
[UnmanagedCallersOnly(EntryPoint = "input_set_gyro_data")]
|
||||
public static void SetGryoDataNatuve(Vector3 gyro, int id)
|
||||
{
|
||||
SetGryoData(gyro, id);
|
||||
}
|
||||
|
||||
[UnmanagedCallersOnly(EntryPoint = "input_set_stick_axis")]
|
||||
public static void SetStickAxisNative(StickInputId stick, Vector2 axes, int id)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user