示例#1
0
        public BasePointer(IVirtualScreen screen, byte ReportID, string Name)
        {
            Report = new T
            {
                ReportID = ReportID
            };

            VirtualScreen = screen;
            Device        = VMultiDevice.Retrieve(Name);

            ScreenToVMulti = new Vector2(VirtualScreen.Width, VirtualScreen.Height) / 32767;
        }
示例#2
0
        public BasePointer(byte ReportID, string Name)
        {
            Report = new T
            {
                ReportID = ReportID
            };

            Device = VMultiDevice.Retrieve(Name);

            var VirtualScreen = (Info.Driver as IVirtualDisplayDriver).VirtualScreen;

            ScreenToVMulti = new Vector2(VirtualScreen.Width, VirtualScreen.Height) / 32767;
        }
示例#3
0
        public BasePointer(IVirtualScreen screen, string Name)
        {
            ReportBuffer  = GC.AllocateArray <byte>(Unsafe.SizeOf <T>(), pinned: true);
            ReportPointer = (T *)Unsafe.AsPointer(ref ReportBuffer[0]);

            T report = CreateReport();

            *ReportPointer = report;

            VirtualScreen = screen;
            Device        = VMultiDevice.Retrieve(Name);

            ScreenToVMulti = new Vector2(VirtualScreen.Width, VirtualScreen.Height) / 32767;
        }