Ejemplo n.º 1
0
        public int ReportNewInputDevice(InputDeviceDescription description, int deviceId = InputDevice.kInvalidDeviceId,
                                        ulong userHandle = 0, string userName = null, string userId = null)
        {
            deviceId = ReportNewInputDevice(description.ToJson(), deviceId);

            // If we have user information, automatically set up
            if (userHandle != 0)
            {
                AssociateInputDeviceWithUser(deviceId, userHandle, userName, userId);
            }

            return(deviceId);
        }
Ejemplo n.º 2
0
 public int ReportNewInputDevice(InputDeviceDescription description, int deviceId = InputDevice.kInvalidDeviceId)
 {
     return(ReportNewInputDevice(description.ToJson(), deviceId));
 }