Mir

Unity requires input injection API from Mir

Bug #1233378 reported by Robert Carr
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
Invalid
Undecided
Robert Carr

Bug Description

Unity uses an input region on the bottom of the screen in order to detect the HUD button edge gesture. However, the client also expects to receive input events in this region, such that the menu bar may be shown (or normal sorts of client things).

Ideally we would solve this with the input filter API, however, currently the shell receives input just as a normal surface (due to some difficulties of Qt adaptation). This way, the shell needs an API to reinject the events it has received (in the HUD gesture input area) to the client.

Related branches

Robert Carr (robertcarr)
Changed in mir:
assignee: nobody → Robert Carr (robertcarr)
status: New → In Progress
Revision history for this message
Daniel d'Andrada (dandrader) wrote :

"Ideally we would solve this with the input filter API[....]"

I think that it will be solved in the future with the accept/reject logic for touches, to be added to android-input. So shell would accept or reject touches and our android::InputDispatcher would take care of dispatching them properly.

Have you seem this?
https://docs.google.com/a/canonical.com/document/d/1tBEyIdGXRTN0oOtY33f8d_giFZv5x7dcd_NRGiCHx7A/edit#heading=h.8v5homx5wjak

So at a first moment we would have technique 1 implemented.

On a second step we would implement technique 2 with technique 1 as a fallback for apps that are not aware of the accept-reject feature.

This was discussed and agreed with mir team when we all last met in person.

Revision history for this message
Robert Carr (robertcarr) wrote :
Changed in mir:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.