VGamepad PC
The PC app for the virtual game controller.
Loading...
Searching...
No Matches
executor.cpp File Reference
#include "executor.hpp"
#include "../settings/input_types.hpp"
#include "../settings/settings_singleton.hpp"
#include "../simulation/gamepadSim.hpp"
#include "../simulation/keyboardSim.hpp"
#include "../simulation/mouseSim.hpp"
#include <QApplication>
#include <QDebug>
#include <algorithm>
#include <cmath>
#include <errno.h>
#include <sstream>
#include <string>
#include <vector>
Include dependency graph for executor.cpp:

Functions

std::pair< float, float > circleToSquare (float x, float y)
std::string getButtonNames (uint32_t buttons)
ParseResult parse_gamepad_state (const char *data, size_t len)

Function Documentation

◆ circleToSquare()

std::pair< float, float > circleToSquare ( float x,
float y )

Converts a circular position (x,y with radius=1) to square coordinates. This allows diagonal movement to reach (1,1) instead of (0.71,0.71).

◆ getButtonNames()

std::string getButtonNames ( uint32_t buttons)

◆ parse_gamepad_state()

ParseResult parse_gamepad_state ( const char * data,
size_t len )