forked from MeloNX/MeloNX
Expose Accelerometer & Gyro Functions
This commit is contained in:
parent
0d9fa91a70
commit
7a07575740
@ -117,7 +117,7 @@ namespace LibRyujinx
|
|||||||
[UnmanagedCallersOnly(EntryPoint = "graphics_renderer_set_size")]
|
[UnmanagedCallersOnly(EntryPoint = "graphics_renderer_set_size")]
|
||||||
public static void SetRendererSizeNative(int width, int height)
|
public static void SetRendererSizeNative(int width, int height)
|
||||||
{
|
{
|
||||||
Renderer?.Window?.SetSize(width, height);
|
SetRendererSize(width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void SetRendererSize(int width, int height)
|
public static void SetRendererSize(int width, int height)
|
||||||
|
@ -244,6 +244,18 @@ namespace LibRyujinx
|
|||||||
SetButtonReleased(button, id);
|
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")]
|
[UnmanagedCallersOnly(EntryPoint = "input_set_stick_axis")]
|
||||||
public static void SetStickAxisNative(StickInputId stick, Vector2 axes, int id)
|
public static void SetStickAxisNative(StickInputId stick, Vector2 axes, int id)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user