代码拉取完成,页面将自动刷新
namespace VirtualXbox
{
using System;
using System.Runtime.InteropServices;
internal static class NativeMethods
{
[DllImport("VirtualXboxNative.dll", EntryPoint = "VBusExists", CallingConvention = CallingConvention.Cdecl)]
internal static extern bool VBusExists();
[DllImport("VirtualXboxNative.dll", EntryPoint = "GetEmptyBusSlotsCount", CallingConvention = CallingConvention.Cdecl)]
internal static extern bool GetEmptyBusSlotsCount(out int count);
[DllImport("VirtualXboxNative.dll", EntryPoint = "ControllerExists", CallingConvention = CallingConvention.Cdecl)]
internal static extern bool ControllerExists(uint userIndex);
[DllImport("VirtualXboxNative.dll", EntryPoint = "IsControllerOwned", CallingConvention = CallingConvention.Cdecl)]
internal static extern bool IsControllerOwned(uint userIndex);
[DllImport("VirtualXboxNative.dll", EntryPoint = "PlugIn", CallingConvention = CallingConvention.Cdecl)]
internal static extern bool PlugIn(uint userIndex);
[DllImport("VirtualXboxNative.dll", EntryPoint = "Unplug", CallingConvention = CallingConvention.Cdecl)]
internal static extern bool Unplug(uint userIndex, bool isForced);
[DllImport("VirtualXboxNative.dll", EntryPoint = "GetLedNumber", CallingConvention = CallingConvention.Cdecl)]
internal static extern bool GetLedNumber(uint userIndex, out byte ledNumber);
[DllImport("VirtualXboxNative.dll", EntryPoint = "SetButton", CallingConvention = CallingConvention.Cdecl)]
internal static extern bool SetButton(uint userIndex, uint button, bool isPressed);
[DllImport("VirtualXboxNative.dll", EntryPoint = "SetTrigger", CallingConvention = CallingConvention.Cdecl)]
internal static extern bool SetTrigger(uint userIndex, uint button, byte value);
[DllImport("VirtualXboxNative.dll", EntryPoint = "SetDpad", CallingConvention = CallingConvention.Cdecl)]
internal static extern bool SetDpad(uint userIndex, int value);
[DllImport("VirtualXboxNative.dll", EntryPoint = "SetAxis", CallingConvention = CallingConvention.Cdecl)]
internal static extern bool SetAxis(uint userIndex, uint axis, short value);
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。