locked
Detect whether touch input is present?

    Question

  • In the game I'm porting, we have a certain input control that only really makes sense if there's touch input available. By removing it when there is no touch available, we save on screen real estate. Is there a way to detect when touch input is present?

    Edit: Found the GetRawInputDeviceList API, but it's Desktop only. What else do we have?


    Software Engineer, Brainium Studios LLC


    Friday, May 11, 2012 6:28 PM

Answers

  • Windows.Devices.Input.TouchCapabilities.TouchPresent

    See Quickstart: Identifying input devices

    You may want to make the control an option (with a logical default). Somebody may have touch but prefer keyboard/mouse or may want to use the "touch" controls with a mouse. Availability may also change at runtime.

    --Rob

    Friday, May 11, 2012 7:01 PM
    Owner

All replies

  • Windows.Devices.Input.TouchCapabilities.TouchPresent

    See Quickstart: Identifying input devices

    You may want to make the control an option (with a logical default). Somebody may have touch but prefer keyboard/mouse or may want to use the "touch" controls with a mouse. Availability may also change at runtime.

    --Rob

    Friday, May 11, 2012 7:01 PM
    Owner
  • Is there an event for when the presence of touch input changes?

    Software Engineer, Brainium Studios LLC

    Monday, May 14, 2012 6:06 PM