Пример #1
0
        private unsafe void Vsync(ushort id, ReadOnlySpan <ushort> payload)
        {
            PruManager.WaitForVsync();
            var response = new VsyncResponse
            {
                id          = id,
                frameNumber = PruManager.GetFrameNumber(), buttons = PruManager.GetButtons()
            };

            Socket.Send(new ReadOnlySpan <byte>(response.rawData, sizeof(VsyncResponse)));
        }
Пример #2
0
 private void GetFrameNumber(ushort id, ReadOnlySpan <ushort> payload)
 {
     _sendStandardResponse(id, (int)PruManager.GetFrameNumber());
 }