Blog series on XInput 2
XI2 is now merged into master. Over the next couple of days, I will post various recipes on how to deal with the new functionality. The examples here are merely snippets, full example programs to summarize each part are available here." (Thanks to Paul Wise).
Posted Jun 18, 2009 23:09 UTC (Thu)
by Cyberax (✭ supporter ✭, #52523)
[Link] (6 responses)
Posted Jun 18, 2009 23:09 UTC (Thu)
by Cyberax (✭ supporter ✭, #52523)
[Link] (5 responses)
Posted Jun 19, 2009 0:48 UTC (Fri)
by whot (subscriber, #50317)
[Link]
Posted Jun 19, 2009 0:55 UTC (Fri)
by alecs1 (guest, #46699)
[Link]
Posted Jun 19, 2009 7:03 UTC (Fri)
by eduperez (guest, #11232)
[Link] (2 responses)
Posted Jun 19, 2009 8:07 UTC (Fri)
by arekm (subscriber, #4846)
[Link]
Posted Jun 19, 2009 11:43 UTC (Fri)
by Cyberax (✭ supporter ✭, #52523)
[Link]
However, the common problem is that a lot of quite common keyboards have additional keys which emit keycodes>256.
Posted Jun 19, 2009 8:59 UTC (Fri)
by dgm (subscriber, #49227)
[Link] (1 responses)
Posted Jun 19, 2009 10:06 UTC (Fri)
by tialaramex (subscriber, #21167)
[Link]
The _physical_ hardware for this abstraction could be just a touchscreen used with a virtual keyboard. Abstractions are always a bit leaky, but as much as possible the developer shouldn't need to know that I prefer a trackball, and an AT keyboard or if I have an experimental holographic touchscreen interface.
Multi-touch is probably NOT best approached as if the user had two (or three, or five...) mouses connected to USB ports. The same blog has a post about this. When I use two fingers to "squeeze" on a multi-touch pad, that's really not two separate events which just happen to be mediated through a single piece of hardware - it's clearly only one event, but emitting something more complicated than a single (x,y) location. This is nothing new - there have long existed devices which emit (x,y,z) with z pressure, and sometimes also a twist or an additional analogue input (trigger pressure).
Posted Jun 19, 2009 10:18 UTC (Fri)
by k3ninho (subscriber, #50375)
[Link] (2 responses)
Posted Jun 19, 2009 10:43 UTC (Fri)
by mjthayer (guest, #39183)
[Link]
Posted Jun 19, 2009 15:47 UTC (Fri)
by iabervon (subscriber, #722)
[Link]
If you wanted, you could have two pointers, where the mouse controls one pointer and the trackpad controls the other pointer, and the keyboard sends key presses to the application that the mouse has selected, but the trackpad can only point and click.
Note that you can have more than one physical device that moves a single pointer or issues key presses for a single keyboard, which is what people more frequently want.
Posted Jun 19, 2009 12:49 UTC (Fri)
by ikm (guest, #493)
[Link]
Blog series on XInput 2
Blog series on XInput 2
Blog series on XInput 2
Blog series on XInput 2
Blog series on XInput 2
Blog series on XInput 2
Blog series on XInput 2
Blog series on XInput 2
That said, I'm not completely comfortable with this extension.
I fail to see it mapping cleanly to multi-touch devices, and I think we are going to see more and more of those. Also, why have pointers and keyboards to be paired?
By the way, "master" and "slave" sounds odd. "router" and "source" would be more appropriate (I think those words are event used somewhere to explain their relationship).
Blog series on XInput 2
Blog series on XInput 2
Blog series on XInput 2
Blog series on XInput 2
Blog series on XInput 2
