alaingalvan / CrossWindow

💻📱 A cross platform system abstraction library written in C++ for managing windows and performing OS tasks.
https://alain.xyz/libraries/crosswindow
MIT License
616 stars 50 forks source link

Gamepad is not detected (Xbox controller) #29

Closed Intervel closed 1 year ago

Intervel commented 1 year ago
 if (event.type == xwin::EventType::Gamepad)
 {
    xwin::GamepadData gamepad = event.data.gamepad;
    std::cout << "gamepad event " << std::endl;

    if (gamepad.connected == true)
    {
        std::cout << "gamepad is connected" << std::endl;
    }
 }

Gamepad is not detected, im using xbox controller.

also std::cout << "gamepad event " << std::endl; doesnt print on console

am i doing it wrong?

could someone please help me? :(

1

file : main.zip