mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	Implement HTML5 cancel/ok button swap on Windows.
Platform is detected on init via the `navigator.platform` string.
This commit is contained in:
		
							parent
							
								
									3e96ba220e
								
							
						
					
					
						commit
						0b286a287c
					
				
					 2 changed files with 18 additions and 0 deletions
				
			
		|  | @ -56,6 +56,8 @@ class DisplayServerJavaScript : public DisplayServer { | |||
| 	int last_width = 0; | ||||
| 	int last_height = 0; | ||||
| 
 | ||||
| 	bool swap_cancel_ok = false; | ||||
| 
 | ||||
| 	// utilities
 | ||||
| 	static Point2 compute_position_in_canvas(int p_x, int p_y); | ||||
| 	static void focus_canvas(); | ||||
|  | @ -195,6 +197,7 @@ public: | |||
| 	virtual void set_icon(const Ref<Image> &p_icon); | ||||
| 
 | ||||
| 	// others
 | ||||
| 	virtual bool get_swap_cancel_ok(); | ||||
| 	virtual void swap_buffers(); | ||||
| 
 | ||||
| 	static void register_javascript_driver(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Fabio Alessandrelli
						Fabio Alessandrelli