src/video/windows/SDL_windowsevents.c
changeset 12404 eb60e952b13f
parent 12382 03d0bddca61b
child 12503 806492103856
equal deleted inserted replaced
12403:a4d730631698 12404:eb60e952b13f
   930 
   930 
   931                 for (i = 0; i < num_inputs; ++i) {
   931                 for (i = 0; i < num_inputs; ++i) {
   932                     PTOUCHINPUT input = &inputs[i];
   932                     PTOUCHINPUT input = &inputs[i];
   933 
   933 
   934                     const SDL_TouchID touchId = (SDL_TouchID)((size_t)input->hSource);
   934                     const SDL_TouchID touchId = (SDL_TouchID)((size_t)input->hSource);
   935                     if (SDL_AddTouch(touchId, "") < 0) {
   935 
       
   936                     /* TODO: Can we use GetRawInputDeviceInfo and HID info to
       
   937                        determine if this is a direct or indirect touch device?
       
   938                      */
       
   939                     if (SDL_AddTouch(touchId, SDL_TOUCH_DEVICE_DIRECT, "") < 0) {
   936                         continue;
   940                         continue;
   937                     }
   941                     }
   938 
   942 
   939                     /* Get the normalized coordinates for the window */
   943                     /* Get the normalized coordinates for the window */
   940                     x = (float)(input->x - rect.left)/(rect.right - rect.left);
   944                     x = (float)(input->x - rect.left)/(rect.right - rect.left);