Gamepad focus model (Re: Input and games.)

Bill Spitzak spitzak at gmail.com
Tue May 7 12:29:52 PDT 2013


Todd Showalter wrote:

>     My temptation would actually be to say that when focus goes to a
> new application, we treat buttons that are down as if they were up;
> don't send a release when they are lifted.  So, if I'm holding down
> SELECT when focus enters the client window and then release it, press
> it and release it, the client sees the press and the second release,
> but not the initial release.

Pointer motion while a button is held down does not change the focus, 
right? (ie same as mice).

So the only way this happens is if the client or server actively changes 
the focus or if the current focus is destroyed.

Any solution should be similar to any solution for keyboard keys and 
mouse buttons (even if it is just "these buttons are in class 1, these 
in class 2, these in class 3, etc...), so that it is possible to talk 
about all devices with buttons in the same documentation.



More information about the wayland-devel mailing list