Search Unity

Event queue problem

Discussion in 'Input System' started by Darress, Jun 14, 2016.

  1. Darress

    Darress

    Joined:
    Mar 5, 2015
    Posts:
    12
    The event queue does not ensure order when the timestamps are the same. Because it works with a sorted list.

    I tried to implement a new device for VR, and it is quite important if the tap or the drag arrives first to the device to be processed. (GearVR touch control.) I have to ignore the drag delta just before the tap, but I had to hack with the timestamps to achieve this. How would you handle such cases? I think there would be nice to use an other container that respects the order of elements with the same timestamp.
     
  2. runevision

    runevision

    Joined:
    Nov 28, 2007
    Posts:
    1,892
    I added a task for us to ensure the queue does not alter the order of events with the same time stamp.
     
  3. Darress

    Darress

    Joined:
    Mar 5, 2015
    Posts:
    12
    Thank you!