Skip to content

Instantly share code, notes, and snippets.

@0x0ade
Last active June 22, 2018 14:57
Show Gist options
  • Save 0x0ade/eb0e196b26c5374e9842 to your computer and use it in GitHub Desktop.
Save 0x0ade/eb0e196b26c5374e9842 to your computer and use it in GitHub Desktop.
XNA4 touch data

Main data:

XNA FNADroid FNA
ID Ascending HW / system identifier (1) Ascending, next free (Android-esque) Ascending, n-th touch
Desktop support None (Win7 only, stub) Disabled by default; FNA_TOUCH_FORCE_ENABLE Enabled
Multi-touch-capable Yes Yes Broken
MT Drag gestures First touch only Additional touches inherit first touch gesture ----
MaximumTouchCount Always 4, ignoring additional touches Always 8, handling more Always 8

(1): Single-touch is timestamp-alike; Additional touches on multitouch behave like FNA. Keep Android-esque as extension? (pro: cheap finger tracking; con: less "accurate")

Additional data:

  • XNA's TouchLocation.ToString(): {Position:{X:[X] Y:[Y]}}

Links and info:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment