NTK and The NTK Project
are properties of Jn Dechereux
Home | Documentation | FAQ.

Vanilla 1.1.8 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthorccarrignon
    • CommentTimeFeb 6th 2013
     
    Hi guys:
    Just spent a couple hours playing around with demos & code samples that come with the new NTKTouch library. Now, just have a newbie question:
    How can I get information about the device capabilities? Is there something like Getdevicecapabilities()??
    Actually, I would like to detect the max number of touch inputs supported by the hardware.

    thanks
    Chris
    •  
      CommentAuthorjnd
    • CommentTimeFeb 8th 2013 edited
     
    Chris,

    Just keep in mind that most informations regarding a Multi-touch Hardware can be obtained using the NTK_GetSystemMetrics() API.

    e.g.
    ndigitizerStatus := NTK_GetSystemMetrics(SM_DIGITIZER)
    If ( NTK_AND( ndigitizerStatus, (NID_READY+NID_MULTI_INPUT) ) == 0) // Stack Ready (0x40) + MultiTouch(0x80)
       Alert("No touch support is currently available" )
       RETURN(0)
    EndIf
    
    nInputs := NTK_GetSystemMetrics(SM_MAXIMUMTOUCHES)
    Alert( "Max. number of touch inputs supported: "+nToc(nInputs) ) 
    

    As shown in the above snippet, you'll probably noticed that besides checking for touch availability and readiness - NTK_GetSystemMetrics() also allows to find out the number of touch inputs that the hardware supports, among others...

    Anyway, feel free to learn more about testing the existence and readiness of Multi-touch Hardware having a closer look to ShowDeviceTouchProperties() & GetNumberOfTouchInputs() procedures in the following tutorials:
    ../NTKTouch/NTKCoreSample/BASICMTOUCH.PRG
    ../NTKTouch/NTKCoreSample/FULLGESTURE.PRG

    And of course, do not hesitate to refer to the MSDN documentation:
    http://msdn.microsoft.com/en-us/library/windows/desktop/dd371581%28v=vs.85%29.aspx
    http://msdn.microsoft.com/en-us/library/windows/desktop/dd353239%28v=vs.85%29.aspx

    Hope this helps.
    Regards,
    JN
    •  
      CommentAuthorccarrignon
    • CommentTimeFeb 9th 2013
     
    Dear JN,

    Thanks for pointing me in the right direction.

    Comme a votre habitude votre réponse est toujours très précise, j`apprécie grandement.
    merci.
    Christian