Go-flutter: Add mouse button support

Created on 23 May 2019  路  3Comments  路  Source: go-flutter-desktop/go-flutter

The embedding API now support device type and different buttons, allowing for right click, middle click, etc.
Some reading:

embedder enhancement good first issue

Most helpful comment

I'll do it.
Just some question :
Do we want it to handle like keyboard and have separated files for each platform ?
Do we want to enable user customisation like keyboard where they can customise the callback ?

All 3 comments

I'll do it.
Just some question :
Do we want it to handle like keyboard and have separated files for each platform ?
Do we want to enable user customisation like keyboard where they can customise the callback ?

I think left/right/middle-click is fairly equal cross-platform. It doesn't feel like it needs separate implementation for win/mac/linux.
I don't think we need customization. This is quite straightforward: mapping GLFW mouse buttons to the embedder PointerEvent.

Closed by #159

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GeertJohan picture GeertJohan  路  5Comments

ohsory1324 picture ohsory1324  路  4Comments

GeertJohan picture GeertJohan  路  4Comments

ghost picture ghost  路  6Comments

qianniancn picture qianniancn  路  7Comments