Код: Выделить всё
#include
#include
#include "map"
#include "string"
#pragma comment(lib, "LogitechSteeringWheelLib.lib")
#include "LogitechSteeringWheelLib.h"
int main()
{
DIJOYSTATE2 *controller_state = NULL;
DIJOYSTATE2ENGINES *last_state = NULL;
std::map current_state_map;
int controller_idx = 0;
HWND h_wnd = FindWindow(_T("ConsoleWindowClass"), NULL);
while (!LogiSteeringInitializeWithWindow(true, h_wnd)) {
printf("try again.\n");
}
while (true) {
if (!LogiUpdate()) {
continue;
}
while (LogiIsConnected(controller_idx)) {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/55353188/why-can-my-console-program-connect-the-g29-wheel-but-cant-read-the-wheel-data[/url]