sony / flutter-embedded-linux

Embedded Linux embedding for Flutter
BSD 3-Clause "New" or "Revised" License
1.16k stars 123 forks source link

Tap events are not notified correctly. #300

Closed makotosato-at closed 1 year ago

makotosato-at commented 1 year ago

Hello.

I have encountered problems using a multi-tap display and i.MX8MP board. In flutter_elinux_view.h/.cc, instance variable _touch_event__ is not initialized, so it contains an garbage value. Therefore, it is not processed correctly in function GgeTouchPoint().

I think it needs to be initialized as follows:

struct touch_event {
    touch_point points[10] = {
      {false, -1, 0, .0, .0}, {false, -1, 0, .0, .0},
      {false, -1, 0, .0, .0}, {false, -1, 0, .0, .0},
      {false, -1, 0, .0, .0}, {false, -1, 0, .0, .0},
      {false, -1, 0, .0, .0}, {false, -1, 0, .0, .0},
      {false, -1, 0, .0, .0}, {false, -1, 0, .0, .0},
    };
  };
HidenoriMatsubayashi commented 1 year ago

Thank you for reporting the bug.