4/19/2023 0 Comments Multitouch tisch![]() ![]() ![]() If you call RegisterTouchWindow, you will stop receiving WM_GESTURE messages. For example, if you have a dynamic user interface (UI) and want to automatically configure some of it, you could check for NID_INTEGRATED_TOUCH, NID_MULTITOUCH, and could get the maximum number of touches the first time that a user runs your application.īy default, you receive WM_GESTURE messages instead of WM_TOUCH messages. If this value is unset, it may mean that the tablet service is stopped, the digitizer is not supported, or digitizer drivers have not been installed.Ĭhecking the NID_* values is a useful way of checking the capabilities of a user's computer to configure your application for touch, pen, or non-tablet input. The input digitizer does not have touch capabilities.Īn integrated touch digitizer is used for input.Īn external touch digitizer is used for input.Īn integrated pen digitizer is used for input.Īn external pen digitizer is used for input.Īn input digitizer with support for multiple inputs is used for input. The following table lists the constants defined in windows.h for testing touch capabilities of the input digitizer. Int value = GetSystemMetrics(SM_DIGITIZER) The following code example shows how these values could be tested. For example, to test for Windows Touch, you would test that the seventh-order bit is set (0x40 in hex). To test the result from the command for a particular feature, you can use the bitwise
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |