public jsevent ReadEvent()
        {
            var data = new jsevent();
            var res  = Interop.read(_fd, ref data, 8);

            if (res < 0)
            {
                throw new IOException($"[errno {Marshal.GetLastWin32Error()}] Error reading from device: {res}");
            }
            return(data);
        }
 internal static extern int read(int fd, ref jsevent data, int count);