コード例 #1
0
        public void get_status()
        {
            int result = NativeHidApiLibAdapter.hid_write(device, cmd.GetStatus.Pointer, new IntPtr(cmd.GetStatus.Length));

            checkResult(result);
            read();
        }
コード例 #2
0
        public void fire()
        {
            int result = NativeHidApiLibAdapter.hid_write(device, cmd.Fire.Pointer, new IntPtr(cmd.Fire.Length));

            checkResult(result);
        }
コード例 #3
0
        public void turnLedOn()
        {
            int result = NativeHidApiLibAdapter.hid_write(device, cmd.Led_On.Pointer, new IntPtr(cmd.Led_On.Length));

            checkResult(result);
        }