VGamepad PC
The Windows app for the virtual game controller.
Loading...
Searching...
No Matches
settings_key_variables.cpp File Reference
Include dependency graph for settings_key_variables.cpp:

Variables

int mouse_sensitivity = 1000
 
int port = 7878
 
std::map< GamepadButtons, InputGAMEPAD_BUTTONS
 
std::map< Thumbstick, WORD > THUMBSTICK_KEYS
 
std::map< WORD, const char * > vk_maps
 
const QList< UINT > MOUSE_BUTTONS = {VK_LBUTTON, VK_RBUTTON, VK_MBUTTON}
 

Variable Documentation

◆ GAMEPAD_BUTTONS

std::map<GamepadButtons, Input> GAMEPAD_BUTTONS
Initial value:
= {
@ GamepadButtons_View
Definition GameButtons.h:9
@ GamepadButtons_X
Definition GameButtons.h:12
@ GamepadButtons_Y
Definition GameButtons.h:13
@ GamepadButtons_DPadUp
Definition GameButtons.h:14
@ GamepadButtons_DPadDown
Definition GameButtons.h:15
@ GamepadButtons_DPadRight
Definition GameButtons.h:17
@ GamepadButtons_B
Definition GameButtons.h:11
@ GamepadButtons_A
Definition GameButtons.h:10
@ GamepadButtons_LeftShoulder
Definition GameButtons.h:18
@ GamepadButtons_Menu
Definition GameButtons.h:8
@ GamepadButtons_DPadLeft
Definition GameButtons.h:16
@ GamepadButtons_RightShoulder
Definition GameButtons.h:19
Definition settings_key_variables.hpp:14

A map for the gamepad button and the corresponding input.

◆ MOUSE_BUTTONS

const QList<UINT> MOUSE_BUTTONS = {VK_LBUTTON, VK_RBUTTON, VK_MBUTTON}

A list containing the Mouse Buttons.

◆ mouse_sensitivity

int mouse_sensitivity = 1000

◆ port

int port = 7878

◆ THUMBSTICK_KEYS

std::map<Thumbstick, WORD> THUMBSTICK_KEYS
Initial value:
= {
@ RightThumbstickUp
Definition settings_key_variables.hpp:29
@ LeftThumbstickUp
Definition settings_key_variables.hpp:25
@ RightThumbstickDown
Definition settings_key_variables.hpp:30
@ LeftThumbstickDown
Definition settings_key_variables.hpp:26
@ RightThumbstickRight
Definition settings_key_variables.hpp:32
@ LeftThumbstickLeft
Definition settings_key_variables.hpp:27
@ LeftThumbstickRight
Definition settings_key_variables.hpp:28
@ RightThumbstickLeft
Definition settings_key_variables.hpp:31

Maps the joystick movements.

◆ vk_maps

std::map<WORD, const char *> vk_maps
Initial value:
= {{VK_LBUTTON, "LMButton"},
{VK_RBUTTON, "RMButton"},
{VK_MBUTTON, "MMButton"},
{VK_BACK, "BACKSPACE"},
{VK_TAB, "TAB"},
{VK_RETURN, "ENTER"},
{VK_SHIFT, "SHIFT"},
{VK_CONTROL, "CTRL"},
{VK_CAPITAL, "CAPITAL"},
{VK_ESCAPE, "ESCAPE"},
{VK_SPACE, "SPACE"},
{VK_PRIOR, "PageUP"},
{VK_NEXT, "PageDOWN"},
{VK_END, "END"},
{VK_HOME, "HOME"},
{VK_LEFT, "LEFT"},
{VK_UP, "UP"},
{VK_RIGHT, "RIGHT"},
{VK_DOWN, "DOWN"},
{VK_INSERT, "INS"},
{VK_DELETE, "DEL"},
{VK_OEM_PERIOD, "."},
{VK_OEM_COMMA, ","},
{VK_OEM_MINUS, "-"},
{VK_OEM_PLUS, "+"},
{VK_MENU, "MENU"}}

A std::map to map the virtual key codes to corresponding key names