Gem icon indicating copy to clipboard operation
Gem copied to clipboard

multipointer support

Open umlaeute opened this issue 11 years ago • 5 comments

it would be great if the mouse-events reported by [gem*window] would have a pointer-ID, so one could actually attach multiple-pointers to a single window (think multitouch)

umlaeute avatar Aug 21 '14 16:08 umlaeute

while being there, maybe we should also have a "keyboard ID" for multiple keyboards attached to a window (even if this is always 0 in practice)

umlaeute avatar Aug 21 '14 16:08 umlaeute

this is now halfway implemented (starting with 9d96f21d467f0c): the [gem*window] objects all output a deviceID along with mouse/keyboard messages.

TODO: implement actual multi-pointer support in the various window-backends (currently all use 0 as the deviceID)

umlaeute avatar Aug 26 '14 13:08 umlaeute

[gemglutwindow] has multipointer support since 4fa5d2d2 (at least when using a recent enough version of freeglut)

umlaeute avatar Aug 26 '14 13:08 umlaeute

commit acb41bfd8 theoretically added support for [gemsdlwindow] (doesn't seem to work though)

umlaeute avatar Aug 26 '14 14:08 umlaeute

TODO

  • [ ] gemcocoawindow is there actually multi-pointer support on OSX? (there's a slight difference between multi-touch and multi-pointer)
  • [x] gemglfw2window (API does not support multi-pointer)
  • [x] gemglfw3window (API does not support multi-pointer)
  • [x] gemglutwindow (working on Debian)
  • [ ] gemglxwindow (optional support for XInput2)
  • [x] gemsdlwindow (code is there, but multi-pointers are not reported - at least on on Debian)
  • [ ] gemw32window is there actually multi-pointer support on W32?

we won't bother about gemmacwindow (it's there mainly for legacy purposes)

umlaeute avatar Aug 28 '14 08:08 umlaeute