OWL

OWL - Open Windowing Library


Gamepads

gamepads is an element of Window. It’s used for handling polled gamepads’ events.

It has 2 functions:

Example of usage:

std::cout << "Left Stick State = {" << window.gamepads[0].getLeftStick().x << ", " <<  window.gamepads[0].getLeftStick().y << "}\n";
std::cout << "Left Trigger State = " << window.gamepads[0].getLeftTrigger() << "\n";
std::cout << "Right Shoulder Button's State = " << window.gamepads[0].isButtonPressed(OWL::Gamepad::ShoulderLeft) << "\n";
std::cout << "There are " << window.gamepads.getCount() << " maximum controllers to plug in.\n";