mirror of
				https://github.com/libsdl-org/SDL.git
				synced 2025-11-04 09:44:35 +00:00 
			
		
		
		
	testgesture: display device name with SDL_GetTouchName()
This commit is contained in:
		@@ -190,7 +190,8 @@ loop(void)
 | 
			
		||||
                    case SDLK_i: {
 | 
			
		||||
                        for (i = 0; i < SDL_GetNumTouchDevices(); ++i) {
 | 
			
		||||
                            const SDL_TouchID id = SDL_GetTouchDevice(i);
 | 
			
		||||
                            SDL_Log("Fingers Down on device %"SDL_PRIs64": %d", id, SDL_GetNumTouchFingers(id));
 | 
			
		||||
                            const char *name = SDL_GetTouchName(i);
 | 
			
		||||
                            SDL_Log("Fingers Down on device %"SDL_PRIs64" (%s): %d", id, name, SDL_GetNumTouchFingers(id));
 | 
			
		||||
                        }
 | 
			
		||||
                        break;
 | 
			
		||||
                    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user