Skip to content

Commit

Permalink
Wire pointer buttons for fuchsia (flutter#4658)
Browse files Browse the repository at this point in the history
* Wire pointer buttons for fuchsia

Right now can't tell right from left button.
  • Loading branch information
cpizano authored and abarth committed Feb 17, 2018
1 parent 1b01591 commit e5b72e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content_handler/runtime_holder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,8 @@ void RuntimeHolder::OnEvent(mozart::InputEventPtr event,
pointer_data.device = pointer->pointer_id;
pointer_data.physical_x = pointer->x * viewport_metrics_.device_pixel_ratio;
pointer_data.physical_y = pointer->y * viewport_metrics_.device_pixel_ratio;
// Buttons are single bit values starting with kMousePrimaryButton = 1.
pointer_data.buttons = static_cast<uint64_t>(pointer->buttons);

switch (pointer_data.change) {
case blink::PointerData::Change::kDown:
Expand Down

0 comments on commit e5b72e5

Please sign in to comment.