使用Gadget 做usb鼠标键盘设备 感谢TI社区提供的好帮助啊!http://e2e.ti.com/support/arm/sitara_arm/f/791/p/571771/2103409?pi316653=2虽然海思平台和TI平台不一样 ,但也大同小异. 具体的步骤如下:转到内核目录://加载配置文件 >cp xxx .config 修改配置 make xxxx menuconfig >-> Device Drivers -> USB support -> USB G
今天写一个demo,要用到鼠标键盘控制三维视角,因此写了个脚本用于控制. 该脚本可以用于即时战略类游戏的视角,提供了缩进,拉伸,旋转.同时按住鼠标右键不放,移动鼠标可以实现第一人称视角的效果. using UnityEngine; using System.Collections; public class CameraController : MonoBehaviour { public float near = 20.0f; public float far = 100.0f; public
声明转换于其它博客当中的. <?php /** 获取网卡的MAC地址原码:目前支持WIN/LINUX系统 获取机器网卡的物理(MAC)地址 **/ class GetMacAddr{ var $return_array = array(); // 返回带有MAC地址的字串数组 var $mac_addr; function GetMacAddr($os_type){ switch ( strtolower($os_type) ){ case "linux": $this->
最近主要工作系统转到LInux上面来了,Slickedit的安装破解也费了些事,今天将过程整理一下做个记录. 说明:SlickEdit pro V21.03 Linux 64位实测可用,MAC实测可用, win实测可用.-------------------------------------------------------------------------------------WIN和Linux和MAC共同步骤:1.首先去官网下载SlickEdit 安装包,https://www.sl