You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Add get_screen_refresh_rate() to OS
This method can be used to get the refresh rate of a given screen. It is supported on Windows, macOS, Linux, Android and iOS (but not HTML5).
This commit is contained in:
@@ -51,6 +51,7 @@ private:
|
||||
jmethodID _get_locale = 0;
|
||||
jmethodID _get_model = 0;
|
||||
jmethodID _get_screen_DPI = 0;
|
||||
jmethodID _get_screen_refresh_rate = 0;
|
||||
jmethodID _get_window_safe_area = 0;
|
||||
jmethodID _get_unique_id = 0;
|
||||
jmethodID _show_keyboard = 0;
|
||||
@@ -72,6 +73,7 @@ public:
|
||||
String get_model();
|
||||
int get_screen_dpi();
|
||||
void get_window_safe_area(int (&p_rect_xywh)[4]);
|
||||
float get_screen_refresh_rate(float p_fallback);
|
||||
String get_unique_id();
|
||||
bool has_vk();
|
||||
void show_vk(const String &p_existing, bool p_multiline, int p_max_input_length, int p_cursor_start, int p_cursor_end);
|
||||
|
||||
Reference in New Issue
Block a user