VGamepad PC
The Windows app for the virtual game controller.
|
Functions | |
void | save_setting (const QString &key, const QVariant &value) |
QVariant | load_setting (const QString &key) |
void | load_mouse_setting () |
void | load_settings_file (QObject *parent=nullptr) |
void | load_port_number () |
void | load_key_maps () |
void | load_all_settings () |
uint | is_mouse_button (UINT vk) |
Variables | |
const QString | SETTINGS_FILE |
QSettings * | settings |
void(* | load_functions [])(void) |
uint is_mouse_button | ( | UINT | vk | ) |
Function to find out if the user mapped a keyboard key or mouse button
vk | Virtual key code of the key or mouse button pressed |
void load_all_settings | ( | ) |
Run the functions using the function array to load all the necessary settings.
void load_key_maps | ( | ) |
Load the key maps from the settings file.
void load_mouse_setting | ( | ) |
Loads and sets the mouse sensitivity.
void load_port_number | ( | ) |
Load and set the port number
QVariant load_setting | ( | const QString & | key | ) |
Get the value of a setting.
key | The fullname including the groups of the setting in string format |
void load_settings_file | ( | QObject * | parent = nullptr | ) |
Loads the settings file for the current application.
parent | The parent object either a widget or Qt Application e.t.c |
void save_setting | ( | const QString & | key, |
const QVariant & | value ) |
Save a setting to the settings file
key | The name of the setting in string format if you want to group settings seperate the head group using </> |
value | The value of the settings can be of any data type string, int, char, float, e.t.c. |
void(* load_functions[])(void) | ( | void | ) |
QSettings* settings |
const QString SETTINGS_FILE |