VGamepad PC
The Windows app for the virtual game controller.
Loading...
Searching...
No Matches
Preferences Class Reference

#include <preferences.hpp>

Inheritance diagram for Preferences:
[legend]
Collaboration diagram for Preferences:
[legend]

Public Member Functions

 Preferences (QWidget *parent=nullptr)
 
 ~Preferences () override
 
void load_keys ()
 
void load_thumbsticks ()
 
void load_port ()
 

Private Slots

void show_help ()
 
void new_profile ()
 
void delete_profile ()
 
void profile_selection_changed (const QString &profileName)
 
void change_port (int value)
 
void restore_defaults ()
 

Private Member Functions

void change_key_inputs ()
 
void change_thumbstick_inputs ()
 
void change_mouse_sensitivity (int value)
 
void setup_profile_management ()
 
void refresh_profile_list ()
 
void setupKeymapTabs ()
 

Private Attributes

Ui::Preferences * ui
 
QString currentProfile
 

Constructor & Destructor Documentation

◆ Preferences()

Preferences::Preferences ( QWidget * parent = nullptr)
explicit

◆ ~Preferences()

Preferences::~Preferences ( )
override

Member Function Documentation

◆ change_key_inputs()

void Preferences::change_key_inputs ( )
private

◆ change_mouse_sensitivity()

void Preferences::change_mouse_sensitivity ( int value)
private

◆ change_port

void Preferences::change_port ( int value)
privateslot

◆ change_thumbstick_inputs()

void Preferences::change_thumbstick_inputs ( )
private

◆ delete_profile

void Preferences::delete_profile ( )
privateslot

◆ load_keys()

void Preferences::load_keys ( )

Displays the key to which each button is mapped to. Saves the initial key maps in variables that can be changed later if user wants to.

◆ load_port()

void Preferences::load_port ( )

◆ load_thumbsticks()

void Preferences::load_thumbsticks ( )

◆ new_profile

void Preferences::new_profile ( )
privateslot

◆ profile_selection_changed

void Preferences::profile_selection_changed ( const QString & profileName)
privateslot

◆ refresh_profile_list()

void Preferences::refresh_profile_list ( )
private

◆ restore_defaults

void Preferences::restore_defaults ( )
privateslot

◆ setup_profile_management()

void Preferences::setup_profile_management ( )
private

◆ setupKeymapTabs()

void Preferences::setupKeymapTabs ( )
private

◆ show_help

void Preferences::show_help ( )
privateslot

Member Data Documentation

◆ currentProfile

QString Preferences::currentProfile
private

◆ ui

Ui::Preferences* Preferences::ui
private

The documentation for this class was generated from the following files: