mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	Merge pull request #10105 from eska014/html5-touch-hint
Implement OS.has_touchscreen_ui_hint() in HTML5 platform
This commit is contained in:
		
						commit
						6d213909cb
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -872,7 +872,11 @@ void OS_JavaScript::process_accelerometer(const Vector3 &p_accelerometer) { | |||
| 
 | ||||
| bool OS_JavaScript::has_touchscreen_ui_hint() const { | ||||
| 
 | ||||
| 	return false; //???
 | ||||
| 	/* clang-format off */ | ||||
| 	return EM_ASM_INT_V( | ||||
| 		return 'ontouchstart' in window; | ||||
| 	); | ||||
| 	/* clang-format on */ | ||||
| } | ||||
| 
 | ||||
| void OS_JavaScript::main_loop_request_quit() { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Rémi Verschelde
						Rémi Verschelde