![]() |
VGamepad PC
The Windows app for the virtual game controller.
|
#include "executor.hpp"
#include "../settings/input_types.hpp"
#include "../settings/settings_singleton.hpp"
#include "../simulation/keyboardSim.hpp"
#include "../simulation/mouseSim.hpp"
#include <QApplication>
#include <algorithm>
#include <cmath>
#include <vector>
Functions | |
vgp_data_exchange_gamepad_reading | parse_gamepad_state (const char *data, size_t len) |
static void | handleButtonDown (const ButtonInput &buttonInput) |
static void | handleButtonUp (const ButtonInput &buttonInput) |
void | handleThumbstickInput (const ThumbstickInput &thumbstick, float x_value, float y_value, double threshold) |
bool | inject_gamepad_state (vgp_data_exchange_gamepad_reading const &reading) |
Variables | |
constexpr double | THRESHOLD = 0.5 |
|
static |
|
static |
void handleThumbstickInput | ( | const ThumbstickInput & | thumbstick, |
float | x_value, | ||
float | y_value, | ||
double | threshold ) |
bool inject_gamepad_state | ( | vgp_data_exchange_gamepad_reading const & | reading | ) |
vgp_data_exchange_gamepad_reading parse_gamepad_state | ( | const char * | data, |
size_t | len ) |
|
constexpr |