Skip to content

Commit e5b72e5

Browse files
cpizanoabarth
authored andcommitted
Wire pointer buttons for fuchsia (flutter#4658)
* Wire pointer buttons for fuchsia Right now can't tell right from left button.
1 parent 1b01591 commit e5b72e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content_handler/runtime_holder.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,8 @@ void RuntimeHolder::OnEvent(mozart::InputEventPtr event,
692692
pointer_data.device = pointer->pointer_id;
693693
pointer_data.physical_x = pointer->x * viewport_metrics_.device_pixel_ratio;
694694
pointer_data.physical_y = pointer->y * viewport_metrics_.device_pixel_ratio;
695+
// Buttons are single bit values starting with kMousePrimaryButton = 1.
696+
pointer_data.buttons = static_cast<uint64_t>(pointer->buttons);
695697

696698
switch (pointer_data.change) {
697699
case blink::PointerData::Change::kDown:

0 commit comments

Comments
 (0)