aboutsummaryrefslogtreecommitdiff
path: root/include/Utils.hpp
blob: 138d47e0b56eff2bee8cc3c2c3ba5f562a5ae0d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include <time.h>
#include <string>
#include <SFML/System/Vector2.hpp>

namespace QuickMedia {
    void show_virtual_keyboard();
    void hide_virtual_keyboard();
    bool is_touch_enabled();
    bool is_running_wayland();
    time_t iso_utc_to_unix_time(const char *time_str);
    std::string unix_time_to_local_time_str(time_t unix_time);
    int64_t get_boottime_milliseconds();

    sf::Vector2f vec2f_floor(float x, float y);
}