public PS3uDrawTabletDevice()
        {
            ButtonState = new TabletButtonState();
              DPadState = new TabletDPadState();
              UnknownData1 = new byte[_UNKNOWN_DATA1_SIZE];
              AccelerometerData = new TabletAccelerometerData();

              _device = new HIDDevice(_VENDOR_ID, _PRODUCT_ID);
              _device.DataReceived += _device_DataReceived;
        }
示例#2
0
        public PS3uDrawTabletDevice()
        {
            ButtonState       = new TabletButtonState();
            DPadState         = new TabletDPadState();
            UnknownData1      = new byte[_UNKNOWN_DATA1_SIZE];
            AccelerometerData = new TabletAccelerometerData();

            _device = new HIDDevice(_VENDOR_ID, _PRODUCT_ID);
            _device.DataReceived += _device_DataReceived;
        }
示例#3
0
        public Xbox360uDrawTabletDevice(WirelessReceiver receiver, int index)
        {
            ButtonState       = new TabletButtonState();
            DPadState         = new TabletDPadState();
            AccelerometerData = new TabletAccelerometerData();

            _index    = index;
            _receiver = receiver;
            _receiver.EventDataReceived += _receiver_EventDataReceived;
        }
示例#4
0
        public Xbox360InputDevice(WirelessReceiver receiver, int index, WirelessReceiver.DeviceInformation info)
        {
            ButtonState       = new TabletButtonState();
            DPadState         = new TabletDPadState();
            AccelerometerData = new TabletAccelerometerData();

            _index    = index;
            _receiver = receiver;
            Info      = info;
            _receiver.EventDataReceived += _receiver_EventDataReceived;
        }
示例#5
0
        public Xbox360InputDevice(WirelessReceiver receiver, int index, WirelessReceiver.DeviceInformation info)
        {
            ButtonState = new TabletButtonState();
              DPadState = new TabletDPadState();
              AccelerometerData = new TabletAccelerometerData();

              _index = index;
              _receiver = receiver;
              Info = info;
              _receiver.EventDataReceived += _receiver_EventDataReceived;
        }
示例#6
0
        public WiiInputDevice(string devicePath, int? index)
        {
            ButtonState = new TabletButtonState();
              DPadState = new TabletDPadState();
              AccelerometerData = new TabletAccelerometerData();
              _acknowledgements = new Dictionary<byte, int>();

              _device = new HIDDevice(devicePath);

              //Initialize the device
              Index = index;
              _device.DataReceived += _device_DataReceived;
              if (index.HasValue)
              {
            EnableLEDs(index.Value == 0, index.Value == 1, index.Value == 2, index.Value == 3);
              }

              //Get the initial status
              _lastReportingMode = 0x37;
              RefreshStatus();
        }
示例#7
0
        public WiiInputDevice(string devicePath, int?index)
        {
            ButtonState       = new TabletButtonState();
            DPadState         = new TabletDPadState();
            AccelerometerData = new TabletAccelerometerData();
            _acknowledgements = new Dictionary <byte, int>();

            _device = new HIDDevice(devicePath);

            //Initialize the device
            Index = index;
            _device.DataReceived += _device_DataReceived;
            if (index.HasValue)
            {
                EnableLEDs(index.Value == 0, index.Value == 1, index.Value == 2, index.Value == 3);
            }

            //Get the initial status
            _lastReportingMode = 0x37;
            RefreshStatus();
        }