Esempio n. 1
0
        public Event[] get_events()
        {
            const int batchSize = 16; // Pyprocgame uses 16

            Event[] events = new Event[batchSize];

            int numEvents;

            lock (procSyncObject)
            {
                numEvents = PinProc.PRGetEvents(ProcHandle, events, batchSize);
            }

            if (numEvents <= 0)
            {
                return(null);
            }

            return(events);
        }