![]() |
VGamepad PC
The PC app for the virtual game controller.
|
#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>
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) |
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).
std::string getButtonNames | ( | uint32_t | buttons | ) |
ParseResult parse_gamepad_state | ( | const char * | data, |
size_t | len ) |