Esempio n. 1
0
 public TouchesHandler(TouchContainerCreateArgs e)
 {
     CreateArgs      = e;
     _containersPool = new Pool <TouchContainer>();
     _containersPool.Reserve(e.TouchesReserve, CreateTouchContainer);
     _containers = new Dictionary <int, TouchContainer>(e.TouchesReserve);
     _touches    = new Dictionary <int, TouchInfo>(e.TouchesReserve);
     _startList  = new List <TouchContainer>(e.TouchesReserve);
     _updateList = new List <TouchContainer>(e.TouchesReserve);
     _endList    = new List <TouchContainer>(e.TouchesReserve);
 }
Esempio n. 2
0
 public TouchContainer(TouchContainerCreateArgs e)
 {
     CreateArgs = e;
     History    = new Queue <TouchInfo>(e.TouchHistorySizeLimit);
 }