Unity 模拟按键
using UnityEngine;
using System.Collections;
using System.Runtime.InteropServices;
public class KeybdEvent : MonoBehaviour {
[DllImport("user32.dll", EntryPoint = "keybd_event")]
public static extern void Keybd_event(
byte bvk,//.
转载
2021-01-06 14:41:00 ·
888 阅读 ·
7 评论